Use longer variable name
authorHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:07:13 +0000 (19:07 -0400)
committerHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:32:14 +0000 (19:32 -0400)
jenkinsapi/fingerprint.py

index b023f2c..050dd08 100644 (file)
@@ -45,12 +45,12 @@ class Fingerprint(JenkinsBase):
         try:
             self.poll()
             self.unknown = False
-        except urllib2.HTTPError, e:
+        except urllib2.HTTPError as err:
             # We can't really say anything about the validity of
             # fingerprints not found -- but the artifact can still
             # exist, so it is not possible to definitely say they are
             # valid or not.
-            if e.code == 404:
+            if err.code == 404:
                 self.unknown = True
                 return True