Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Be explicit about returning None
Browse files Browse the repository at this point in the history
Because 'explicit is better than implicit'
http://legacy.python.org/dev/peps/pep-0020/
  • Loading branch information
robyoung committed Sep 17, 2014
1 parent eac2c66 commit 1dff775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion performanceplatform/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def wrapped(*args, **kwargs):
return func(*args, **kwargs)
except requests.HTTPError as e:
if e.response.status_code == status_code:
return
return None
else:
raise
return wrapped
Expand Down

0 comments on commit 1dff775

Please sign in to comment.