mirror of
https://github.com/jrconlin/oauthsimple.git
synced 2026-09-14 10:33:00 +00:00
Use reset for PHP
use proper exception param for python test
This commit is contained in:
@@ -43,7 +43,7 @@ class TestOAuth(unittest.TestCase):
|
||||
# send the link.
|
||||
try:
|
||||
rsp=urllib2.urlopen(signed.get('signed_url'))
|
||||
except urllib2.HTTPError as ex:
|
||||
except urllib2.HTTPError, ex:
|
||||
if (ex.headers.get('x-mashery-error-code') ==
|
||||
'ERR_401_TIMESTAMP_IS_INVALID'):
|
||||
print "Your clock is off. Check and retry."
|
||||
|
||||
Reference in New Issue
Block a user