From a9dbdee7c257797e7919f15ab10bcab60fe6de9a Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 14 Jul 2025 22:43:06 -0600 Subject: Attempt 1 to enforce debug mode on --- aergia | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aergia') diff --git a/aergia b/aergia index 598509c..2918ef6 100755 --- a/aergia +++ b/aergia @@ -240,6 +240,10 @@ class Aergia(object): '''Given an asyncio event loop, returns the list of idle task frames. A task is considered 'idle' if it is not currently executing.''' idle = [] + if not loop.get_debug(): + # ensure the loop is in debug mode. Otherwise, + # _source_traceback is NULL. + loop.set_debug(True) for th in loop._scheduled: st = th._source_traceback if st: -- cgit v1.2.3