[PATCH 47 of 52 Narval cube] [flake8] fix E722 do not use bare 'except'

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:47 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585732292 0
#      Wed Apr 01 09:11:32 2020 +0000
# Node ID 8fd76c276ff66f0d0edddb2b9c690ce36fec6a69
# Parent  2980b949b9c6ea579dda63682f87e77dfdd09a0b
[flake8] fix E722 do not use bare 'except'

diff --git a/cubicweb_narval/narvalbot/engine.py b/cubicweb_narval/narvalbot/engine.py
--- a/cubicweb_narval/narvalbot/engine.py
+++ b/cubicweb_narval/narvalbot/engine.py
@@ -110,7 +110,7 @@
                        narvalplan.url, exc_info=True)
             narvalplan.fire_transition('fail')
             raise
-        except:
+        except:  # noqa: E722
             narvalplan.fire_transition('fail')
             raise
 
diff --git a/cubicweb_narval/testutils.py b/cubicweb_narval/testutils.py
--- a/cubicweb_narval/testutils.py
+++ b/cubicweb_narval/testutils.py
@@ -57,7 +57,7 @@
                 main.run(self.command[1:])
             except SystemExit as ex:
                 self.returncode = ex.code
-            except:
+            except:  # noqa: E722
                 self.returncode = -1
                 import traceback
                 traceback.print_exc(file=sys.stderr)
@@ -102,7 +102,7 @@
                                         "Failed", req.headers_out, fp)
             try:
                 return load(fp)
-            except:
+            except:  # noqa: E722
                 return fp
 
         self.orig_http_get = bot.HTTPConnectionHandler.http_get




More information about the cubicweb-devel mailing list