Skip to content

Commit

Permalink
Merge pull request #30 from dpetrovics/master
Browse files Browse the repository at this point in the history
Fix response status equality for int/long. Thanks @dpetrovics!
  • Loading branch information
kylefinley committed Aug 20, 2015
2 parents ecd6fc6 + f9593f9 commit d156e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engineauth/strategies/twitter.py
Expand Up @@ -22,7 +22,7 @@ def service(self, **kwargs):
def user_info(self, req):
url = 'https://api.twitter.com/1.1/account/verify_credentials.json'
res, results = self.http(req).request(url)
if res.status is not 200:
if res.status != 200:
raise('A {0} error.'.format(req.provider))
user = json.loads(results)
try:
Expand Down

0 comments on commit d156e28

Please sign in to comment.