Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Print full response upon error.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Apr 17, 2013
1 parent 67912b1 commit a2bd0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reddit_f2p/steam.py
Expand Up @@ -162,9 +162,9 @@ def _claim_hat(msg):
response_data = response.json

if response_data["result"]["status"] != 1:
g.log.warning("Steam Promo for %r -> %r failed: %s",
g.log.warning("Steam Promo for %r -> %r failed: %r",
account, data["steam-id"],
response_data["statusDetail"])
response_data)
raise Exception

account.f2p = "claimed"
Expand Down

0 comments on commit a2bd0ba

Please sign in to comment.