[elbe-devel] [PATCH] pylint: fix undefined variable 'e'

Manuel Traut manut at linutronix.de
Wed Dec 5 08:39:13 CET 2018


soapclient.py:102, PyLint, Priority: High
Undefined variable 'e'

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/soapclient.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index c7d822d3..efd6475e 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -94,7 +94,7 @@ class ElbeSoapClient(object):
         while True:
             try:
                 ret = self.service.get_file(builddir, filename, part)
-            except BadStatusLine:
+            except BadStatusLine as e:
                 retry = retry - 1
 
                 print("get_file part %d failed, retry %d times" % (part, retry),
-- 
2.19.2




More information about the elbe-devel mailing list