Skip to content

Commit

Permalink
fix to error code
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Mar 13, 2015
1 parent e2590dd commit 45d3a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/panther-hammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
## Make attempt to contact server, fail.
response = None
try: response = urllib2.urlopen(req)
except URLError as e:
except urllib2.URLError as e:
if hasattr(e, 'reason'):
print('Failed to reach server: ', e.reason)
elif hasattr(e, 'code'):
Expand Down

0 comments on commit 45d3a8e

Please sign in to comment.