summaryrefslogtreecommitdiff
path: root/aergia
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-07-14 22:43:06 -0600
committerbd <bdunahu@operationnull.com>2025-07-14 22:43:06 -0600
commita9dbdee7c257797e7919f15ab10bcab60fe6de9a (patch)
tree7f53c10ecbac115e3b697abc7092e097461be28b /aergia
parent48bdab04107746a80e0d3ac11a12c739a74feb03 (diff)
Attempt 1 to enforce debug mode on
Diffstat (limited to 'aergia')
-rwxr-xr-xaergia4
1 files changed, 4 insertions, 0 deletions
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: