Don't catch all exceptions.

This commit is contained in:
Ned Batchelder
2014-01-06 10:24:00 -05:00
parent 9c81a07012
commit 93682af4eb
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class MongoContentStore(ContentStore):
def close_stream(self, handle):
try:
handle.close()
except:
except Exception:
pass
def export(self, location, output_directory):

View File

@@ -45,5 +45,5 @@ def restore_asset_from_trashcan(location):
try:
thumbnail_content = trash.find(content.thumbnail_location)
store.save(thumbnail_content)
except:
except Exception:
pass # OK if this is left dangling