Skip to content

Commit

Permalink
{str(x)} → {x}
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 8, 2023
1 parent 2aa9ed7 commit ebbe297
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynetdicom/service_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _c_find_scp(self, req: C_FIND, context: "PresentationContext") -> None:
LOGGER.error(
"\nTraceback (most recent call last):\n"
+ "".join(traceback.format_tb(exc[2]))
+ f"{exc[0].__name__}: {str(exc[1])}" # type: ignore
+ f"{exc[0].__name__}: {exc[1]}" # type: ignore
)
rsp_status = 0xC311
dataset = None
Expand Down Expand Up @@ -1707,7 +1707,7 @@ def _add_failed_instance(ds: Dataset) -> None:
LOGGER.error(
"\nTraceback (most recent call last):\n"
+ "".join(traceback.format_tb(exc[2]))
+ f"{exc[0].__name__}: {str(exc[1])}" # type: ignore
+ f"{exc[0].__name__}: {exc[1]}" # type: ignore
)
rsp_status = 0xC411
dataset = None
Expand Down Expand Up @@ -2131,7 +2131,7 @@ def _add_failed_instance(ds: Dataset) -> None:
LOGGER.error(
"\nTraceback (most recent call last):\n"
+ "".join(traceback.format_tb(exc[2]))
+ f"{exc[0].__name__}: {str(exc[1])}" # type: ignore
+ f"{exc[0].__name__}: {exc[1]}" # type: ignore
)
rsp_status = 0xC511
dataset = None
Expand Down

0 comments on commit ebbe297

Please sign in to comment.