Gracefully handle errors when reading webassets

This commit is contained in:
Gina Häußge 2016-09-01 13:19:31 +02:00
parent 37a39e82e2
commit 854eef7d00

View file

@ -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()