Skip to content

Commit f4247dd

Browse files
committed
Fix old-style exception handling
1 parent 41c943b commit f4247dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codespeed/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def retrieve_revision(commit_id, username, project, revision=None):
3838
if commit_json is None:
3939
try:
4040
commit_json = json.load(urllib.urlopen(commit_url))
41-
except IOError, e:
41+
except IOError as e:
4242
logger.exception("Unable to load %s: %s",
4343
commit_url, e, exc_info=True)
4444
raise e

0 commit comments

Comments
 (0)