Skip to content

Commit

Permalink
Add missing variables when creating ApiError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
thoas committed Jun 16, 2014
1 parent b8e271a commit 4666ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leetchi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def request(self, method, url, data=None):

if result.status_code not in (requests.codes.ok, requests.codes.not_found,
requests.codes.created, requests.codes.accepted):
self._create_apierror(result, url=url)
self._create_apierror(result, url=url, data=data, method=method)
else:
if result.content:
try:
Expand Down

0 comments on commit 4666ec4

Please sign in to comment.