Gracefully handle errors when reading webassets
This commit is contained in:
1 parent
37a39e82e2
commit
854eef7d00
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user