Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Jan 18, 2024
1 parent e1da959 commit 5f5ccbe
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions extensions/eda/plugins/event_source/dt_esa_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ async def getproblems(dt_host: str, dt_token: str) -> None:
try:
return await resp.json()
except aiohttp.ClientResponseError as client_response_error:
raise
logging.exception("Exception in response from Dynatrace API")
except aiohttp.ClientConnectionError as connection_error:
raise
logging.exception("Exception connecting to Dynatrace API")
except aiohttp.ClientError as client_error:
raise
logging.exception("aiohttp client Exception")

async def updatedtproblem(prob_id: str, dtapihost: str, dtapitoken: str) -> None:
"""Update problem comment once its sent to the EDA server.
Expand Down Expand Up @@ -73,11 +73,12 @@ async def updatedtproblem(prob_id: str, dtapihost: str, dtapitoken: str) -> None
logging.warning(resp.status)
logging.warning(resp.text)
except aiohttp.ClientResponseError as client_response_error:
raise
logging.exception("Exception in response from Dynatrace API")
except aiohttp.ClientConnectionError as connection_error:
raise
logging.exception("Exception connecting to Dynatrace API")
except aiohttp.ClientError as client_error:
raise
logging.exception("aiohttp client Exception")


async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None:
"""Process the problem information.
Expand Down

0 comments on commit 5f5ccbe

Please sign in to comment.