Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aiohttp field for status #10

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/eda/plugins/event_source/dt_esa_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def getproblems(dt_host: str, dt_token: str) -> None:
return await resp.json()
except ConnectionError as err:
logging.exception("Error %s", err.message) # pylint: disable=E1101
logging.warning(resp.status_code)
logging.warning(resp.status)
logging.warning(resp.text)
return {}

Expand Down Expand Up @@ -61,7 +61,7 @@ async def updatedtproblem(prob_id: str, dtapihost: str, dtapitoken: str) -> None
resp = await session.post(url, json=commentbody)
warning_status = 201
if resp.status != warning_status:
logging.warning(resp.status_code)
logging.warning(resp.status)
logging.warning(resp.text)


Expand Down