[web] Avoid bare "except" in ConcatFilesHandler.concat_cached_filepath()
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 30 Oct 2017 09:25:22 +0100
changeset 12223 79d243a2f0c5
parent 12222 52f395015ff9
child 12224 5c066dc7307b
[web] Avoid bare "except" in ConcatFilesHandler.concat_cached_filepath()
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: