diff options
| author | bd <bdunahu@operationnull.com> | 2025-07-14 22:43:06 -0600 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-07-14 22:43:06 -0600 |
| commit | a9dbdee7c257797e7919f15ab10bcab60fe6de9a (patch) | |
| tree | 7f53c10ecbac115e3b697abc7092e097461be28b | |
| parent | 48bdab04107746a80e0d3ac11a12c739a74feb03 (diff) | |
Attempt 1 to enforce debug mode on
| -rwxr-xr-x | aergia | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |
