Skip to content

Commit

Permalink
Merge pull request requests#344 from jdufresne/bare
Browse files Browse the repository at this point in the history
Replace bare 'except:' with 'except Exception:'
  • Loading branch information
singingwolfboy authored Dec 27, 2018
2 parents 28d0079 + 31b909c commit 8962389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_oauthlib/oauth1_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def urldecode(body):
"""Parse query or json to python dictionary"""
try:
return _urldecode(body)
except:
except Exception:
import json
return json.loads(body)

Expand Down

0 comments on commit 8962389

Please sign in to comment.