Commit 93682af4 by Ned Batchelder

Don't catch all exceptions.

parent 9c81a070
...@@ -100,7 +100,7 @@ class MongoContentStore(ContentStore): ...@@ -100,7 +100,7 @@ class MongoContentStore(ContentStore):
def close_stream(self, handle): def close_stream(self, handle):
try: try:
handle.close() handle.close()
except: except Exception:
pass pass
def export(self, location, output_directory): def export(self, location, output_directory):
......
...@@ -45,5 +45,5 @@ def restore_asset_from_trashcan(location): ...@@ -45,5 +45,5 @@ def restore_asset_from_trashcan(location):
try: try:
thumbnail_content = trash.find(content.thumbnail_location) thumbnail_content = trash.find(content.thumbnail_location)
store.save(thumbnail_content) store.save(thumbnail_content)
except: except Exception:
pass # OK if this is left dangling pass # OK if this is left dangling
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment