Skip to content

Commit fe8e488

Browse files
committed
Use raise ... from
1 parent beda13e commit fe8e488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoip2/webservice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _handle_success(body: str, uri: str) -> Any:
104104
"JSON: " % locals() + ", ".join(ex.args),
105105
200,
106106
uri,
107-
)
107+
) from ex
108108

109109
def _exception_for_error(
110110
self, status: int, content_type: str, body: str, uri: str

0 commit comments

Comments
 (0)