changeset 19348:86598245ffdd

vfs: do not raise error on non-existent files
author Dmitry Selyutin <ghostmansd@gmail.com>
date Wed, 04 Oct 2017 22:54:35 +0300
parents f36ddfa815b9
children 52ae5c9fc889
files pygnulib/vfs.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pygnulib/vfs.py	Wed Oct 04 21:10:55 2017 +0300
+++ b/pygnulib/vfs.py	Wed Oct 04 22:54:35 2017 +0300
@@ -74,10 +74,7 @@
                         part = self.__config[new]
                         replaced = True
             parts += [part]
-        path = _os_.path.sep.join([self.__path] + parts)
-        if not _os_.path.exists(path):
-            raise FileNotFoundError(name)
-        return path
+        return _os_.path.sep.join([self.__path] + parts)
 
 
     @property