Skip to content
Snippets Groups Projects
Commit f02ef5fa authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Allow bare try-except when cleaning up tempfiles.

parent dc4516b9
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ def clean_all_temp_files():
os.unlink(x)
except FileNotFoundError:
pass
except:
except: # noqa
logger.exception("Unable to delete %s", x)
_FILES.clear()
......@@ -74,7 +74,7 @@ def clean_all_temp_files():
x.cleanup()
except FileNotFoundError:
pass
except:
except: # noqa
logger.exception("Unable to delete %s", x)
_DIRS.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment