Skip to content

Commit 3d2c9d1

Browse files
author
Andrey
committed
Fix error handling.
1 parent e45589e commit 3d2c9d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bugout/calls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def make_request(method: Method, url: str, **kwargs) -> Any:
1212
response.raise_for_status()
1313
except requests.exceptions.RequestException as err:
1414
r = err.response
15-
if not err.response:
15+
if err.response is None:
1616
# Connection errors, timepouts, etc...
1717
raise BugoutResponseException(
1818
"Network error", status_code=599, detail=str(err)

0 commit comments

Comments
 (0)