Permalink
Browse files

better error message on unparseable body

  • Loading branch information...
1 parent 9cb1579 commit 5fc1d42d1b698c541ee51bfe4bdcf901e2b88e5e @andrew-stripe andrew-stripe committed Dec 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 stripe/error.py
View
@@ -9,7 +9,8 @@ def __init__(self, message=None, http_body=None, http_status=None,
try:
http_body = http_body.decode('utf-8')
except:
- http_body = '<could not decode utf-8 body>'
+ http_body = ('<Could not decode body as utf-8. '
+ 'Please report to support@stripe.com>')
self.http_body = http_body

0 comments on commit 5fc1d42

Please sign in to comment.