Fix some IDE warnings

(cherry picked from commit 8fc3cfa56d)
This commit is contained in:
Ian Renton
2026-06-17 18:08:02 +01:00
parent af9f542740
commit 4408203d55
15 changed files with 27 additions and 30 deletions

View File

@@ -145,7 +145,7 @@ class APISpotsStreamHandler(tornado_eventsource.handler.EventSourceHandler):
if self._spot_queue not in self._sse_spot_queues:
logging.error("Web server cleared up a queue of an active connection!")
self.close()
except:
except Exception as e:
logging.warning("Exception in SSE callback, connection will be closed: %s", e, exc_info=True)
self.close()