From 79ccc7a443879f2e6ca57823f092f7c194b5bc33 Mon Sep 17 00:00:00 2001 From: Hugh Brown Date: Thu, 10 Oct 2013 19:07:13 -0400 Subject: [PATCH] Use longer variable name --- jenkinsapi/fingerprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsapi/fingerprint.py b/jenkinsapi/fingerprint.py index b023f2c..050dd08 100644 --- a/jenkinsapi/fingerprint.py +++ b/jenkinsapi/fingerprint.py @@ -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 -- 2.7.4