Revert File Open to catch File Access Errors.
https://github.com/ZeroNetX/ZeroNet/issues/174
This commit is contained in:
parent
b257338b0a
commit
c3815c56ea
1 changed files with 1 additions and 5 deletions
|
@ -255,11 +255,7 @@ class SiteStorage(object):
|
|||
if create_dirs:
|
||||
file_inner_dir = os.path.dirname(inner_path)
|
||||
self.ensureDir(file_inner_dir)
|
||||
try :
|
||||
return open(file_path, mode, **kwargs)
|
||||
except IOError as err:
|
||||
self.log.error("File Access error: %s" % Debug.formatException(err))
|
||||
return None
|
||||
|
||||
# Open file object
|
||||
@thread_pool_fs_read.wrap
|
||||
|
|
Loading…
Reference in a new issue