Skip to content

Commit

Permalink
Merge pull request #136 from pmourlanne/master
Browse files Browse the repository at this point in the history
Fixed an assignment issue
  • Loading branch information
ezarowny authored Oct 5, 2016
2 parents 30ede11 + 8429888 commit 799f98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,12 +1253,12 @@ def _parse_response(path, access_token, params, resp, endpoint=None):
payload = json.loads(params)
uuid = payload['data']['uuid']
host = payload['data']['server']['host']
log.error("Rollbar: request entity too large for UUID %r\n. Payload:\n%r", uuid, payload)
except (TypeError, ValueError):
log.exception('Unable to decode JSON for failsafe.')
except KeyError:
log.exception('Unable to find payload parameters for failsafe.')

log.error("Rollbar: request entity too large for UUID %r\n. Payload:\n%r", uuid, payload)
_send_failsafe('payload too large', uuid, host)
elif resp.status_code != 200:
log.warning("Got unexpected status code from Rollbar api: %s\nResponse:\n%s",
Expand Down

0 comments on commit 799f98b

Please sign in to comment.