[PATCH 21 of 24 Openidrelay cube] [flake] fix F841 local variable assigned to but never used

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:54:04 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585511575 0
#      Sun Mar 29 19:52:55 2020 +0000
# Node ID 25ac6bfb7e18027d30ec0b3eff5f9c841fbc5b67
# Parent  66ca88f5dcc197745ebac14a212fc1de571f6d36
[flake] fix F841 local variable assigned to but never used

diff --git a/cubicweb_openidrelay/views.py b/cubicweb_openidrelay/views.py
--- a/cubicweb_openidrelay/views.py
+++ b/cubicweb_openidrelay/views.py
@@ -59,7 +59,7 @@
     req.cnx = None
     try:
         self.appli.session_handler.set_session(req)
-    except Redirect as r:
+    except Redirect:
         pass
     assert req.user.login == login
 




More information about the cubicweb-devel mailing list