Skip to content

Commit

Permalink
Revert File Open to catch File Access Errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
canewsin committed May 27, 2022
1 parent b257338 commit c3815c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Site/SiteStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,7 @@ def open(self, inner_path, mode="rb", create_dirs=False, **kwargs):
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
return open(file_path, mode, **kwargs)

# Open file object
@thread_pool_fs_read.wrap
Expand Down

0 comments on commit c3815c5

Please sign in to comment.