Skip to content

Commit 8f50204

Browse files
committed
Log exception for better output
1 parent 69e72d2 commit 8f50204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fastcs/control_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ async def block_forever():
139139
await asyncio.gather(*coros)
140140
except asyncio.CancelledError:
141141
pass
142-
except Exception as e:
143-
raise RuntimeError("Unhandled exception in serve") from e
142+
except Exception:
143+
logger.exception("Unhandled exception in serve")
144144
finally:
145145
logger.info("Shutting down FastCS")
146146
self._stop_scan_tasks()

0 commit comments

Comments
 (0)