Skip to content

Commit 1344c8b

Browse files
committed
Mypy fix
1 parent 8d1f032 commit 1344c8b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

bugout/calls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def make_request(method: Method, url: str, **kwargs) -> Any:
1717
raise BugoutResponseException(
1818
"Network error", status_code=599, detail=str(err)
1919
)
20-
if r.headers.get("Content-Type") == "application/json":
21-
exception_detail = r.json()["detail"]
20+
if r.headers.get("Content-Type") == "application/json": # type: ignore
21+
exception_detail = r.json()["detail"] # type: ignore
2222
else:
23-
exception_detail = r.text
23+
exception_detail = r.text # type: ignore
2424
raise BugoutResponseException(
2525
"An exception occurred at Bugout API side",
26-
status_code=r.status_code,
26+
status_code=r.status_code, # type: ignore
2727
detail=exception_detail,
2828
)
2929
except Exception as e:

bugout/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def find_user(
103103
if username is not None:
104104
query_params.update({"username": username})
105105
if application_id is not None:
106-
query_params.update({"application_id": application_id})
106+
query_params.update({"application_id": str(application_id)})
107107

108108
headers = {}
109109
if token is not None:

0 commit comments

Comments
 (0)