chore: format exceptions with type

This commit is contained in:
aclist committed 2026-06-06 17:50:32 +09:00
1 parent 83a7996189
commit 2419fedd19
5 files changed
+14 -6

No files matched your search

+4
View File
@@ -83,3 +83,7 @@ def format_player_count(model: Gtk.TreeModel | None, control: list) -> str:
def embolden(text: str) -> str:
return f"<b>{text}</b>"
def format_exception(e: Exception) -> str:
return f"{type(e).__name__}: {e}"