[PATCH 11 of 52 Narval cube] [new style] use except new syntax

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585415523 0
#      Sat Mar 28 17:12:03 2020 +0000
# Node ID e3893ade7c7c6096d9c32a6fe4e4211d7fecb436
# Parent  b2090d431f13f7bc13f0328718b06da0e5800eac
[new style] use except new syntax

diff --git a/cubicweb_narval/narvalbot/server.py b/cubicweb_narval/narvalbot/server.py
--- a/cubicweb_narval/narvalbot/server.py
+++ b/cubicweb_narval/narvalbot/server.py
@@ -250,7 +250,7 @@
         if cmd.returncode:
             try:
                 ret = cnxh.http_get(url, vid='fire_transition', trname='kill')
-            except requests.HTTPError, ex:
+            except requests.HTTPError as ex:
                 # CW returns a 409 (CONFLICT) on ValidationError,
                 # expected if plan already is done or failed
                 if ex.response.status_code != 409:




More information about the cubicweb-devel mailing list