Gracefully handle errors when reading webassets
This commit is contained in:
parent
37a39e82e2
commit
854eef7d00
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ def fix_webassets_cache():
|
|||
f = open(filename, 'rb')
|
||||
except IOError as e:
|
||||
if e.errno != errno.ENOENT:
|
||||
raise
|
||||
error_logger.exception("Got an exception while trying to open webasset file {}".format(filename))
|
||||
return None
|
||||
try:
|
||||
result = f.read()
|
||||
|
|
|
|||
Loading…
Reference in a new issue