# HG changeset patch # User Denis Laxalde # Date 1509351922 -3600 # Node ID 79d243a2f0c53939d88d70000cb0c94e175bb0f4 # Parent 52f395015ff90d3e2faf3a0e5b45ad1b12a21696 [web] Avoid bare "except" in ConcatFilesHandler.concat_cached_filepath() diff -r 52f395015ff9 -r 79d243a2f0c5 cubicweb/web/views/staticcontrollers.py --- a/cubicweb/web/views/staticcontrollers.py Mon Oct 30 09:16:07 2017 +0100 +++ b/cubicweb/web/views/staticcontrollers.py Mon Oct 30 09:25:22 2017 +0100 @@ -168,7 +168,7 @@ f.write(line) f.write(b'\n') f.close() - except: + except Exception: os.remove(tmpfile) raise else: