--- 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: