Skip to content

Commit

Permalink
Use raise ... from
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 9, 2020
1 parent beda13e commit fe8e488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoip2/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _handle_success(body: str, uri: str) -> Any:
"JSON: " % locals() + ", ".join(ex.args),
200,
uri,
)
) from ex

def _exception_for_error(
self, status: int, content_type: str, body: str, uri: str
Expand Down

0 comments on commit fe8e488

Please sign in to comment.