Commit 7d98231e by Ned Batchelder

Merge pull request #2082 from edx/ned/dont-catch-all-exceptions

Don't catch all exceptions.
parents 9c81a070 93682af4
......@@ -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):
......
......@@ -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
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