Dale Arbogast 279f05a14a fix: handle RuntimeError in notification_manager emit()
asyncio.get_running_loop() raises RuntimeError when emit() is called
from a thread without an active event loop (e.g. when the disk space
check in project_manager triggers a log.warning notification from a
threadpool worker).

This causes a 500 Internal Server Error on project creation/open when
disk usage is high, instead of the intended warning notification.

Wrap the emit loop in try/except RuntimeError so that notifications
are silently dropped when no event loop is available, rather than
crashing the request.

Fixes #2502
Fixes #2505
2026-02-19 16:49:50 -05:00
..
2026-01-28 22:24:10 +08:00
2026-02-16 19:32:47 +08:00
2024-12-30 15:59:01 +07:00
2025-05-14 19:11:44 +02:00
2024-04-22 18:51:29 +07:00
2026-01-28 22:30:36 +08:00
2022-01-19 22:28:36 +10:30
2026-01-28 22:30:36 +08:00