Skip to content
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
5 changes: 3 additions & 2 deletions smpclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import asyncio
import logging
import traceback
from hashlib import sha256
from types import TracebackType
from typing import AsyncIterator, Final, Tuple, Type
Expand Down Expand Up @@ -401,10 +402,10 @@ async def __aexit__(
self,
exc_type: Type[BaseException] | None,
exc_value: BaseException | None,
traceback: TracebackType | None,
tb: TracebackType | None,
) -> None:
if exc_value is not None:
logger.error(f"Exception in SMPClient: {exc_type=}, {exc_value=}, {traceback=}")
logger.error(f"Exception in SMPClient:\n{traceback.format_exc()}")
await self.disconnect()

@staticmethod
Expand Down
Loading