Skip to content

Commit

Permalink
f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Dec 21, 2024
1 parent 46a45f1 commit 34a0253
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ async def stream_results( # noqa: PLR0915 # pylint: disable=too-many-branches
except WebSocketDisconnect:
pass
except Exception as e: # pylint: disable=broad-except
msg = f"{e.__class__.__name__ if hasattr(e, "__class__") else e} -> {e}"
msg = f"{e.__class__.__name__ if hasattr(e, '__class__') else e} -> {e}"
self.logger.error(msg)
return

Expand Down

0 comments on commit 34a0253

Please sign in to comment.