Skip to content

Commit

Permalink
Version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nanomad committed May 5, 2024
1 parent 95ad0d3 commit ce7ad2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "saic_ismart_client_ng"
version = "0.2.1"
version = "0.2.2"
authors = [
{ name = "Giovanni Condello", email = "[email protected]" },
]
Expand Down
8 changes: 4 additions & 4 deletions src/saic_ismart_client_ng/net/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ async def invoke_request_listener(self, request: httpx.Request):

body = request.content.decode("utf-8")
except Exception as e:
self.__logger.warning(f"Error decoding request content: {e}")
self.__logger.warning(f"Error decoding request content: {e}", exc_info=e)

await self.__listener.on_request(
path=str(request.url).replace(self.configuration.base_uri, "/"),
body=body,
headers=dict(request.headers),
)
except Exception as e:
self.__logger.warning(f"Error invoking request listener: {e}")
self.__logger.warning(f"Error invoking request listener: {e}", exc_info=e)

async def invoke_response_listener(self, response: httpx.Response):
if not self.__listener:
Expand All @@ -51,12 +51,12 @@ async def invoke_response_listener(self, response: httpx.Response):
try:
body = body.decode("utf-8")
except Exception as e:
self.__logger.warning(f"Error decoding request content: {e}")
self.__logger.warning(f"Error decoding request content: {e}", exc_info=e)

await self.__listener.on_response(
path=str(response.url).replace(self.configuration.base_uri, "/"),
body=body,
headers=dict(response.headers),
)
except Exception as e:
self.__logger.warning(f"Error invoking request listener: {e}")
self.__logger.warning(f"Error invoking request listener: {e}", exc_info=e)

0 comments on commit ce7ad2a

Please sign in to comment.