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

+1 -2
View File
@@ -238,8 +238,7 @@ class ConnectionManager:
def query_modlist_and_present(self, record: Servers.Record) -> None:
try:
mods = self._query_modlist(record)
except Exception as e:
print(f"{type(e).__name__}: {e}")
except Exception:
self.thread_man.set_cleanup_func(
StoredFunc(self._server_timeout), destroy_first=True
)