We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3060ceb commit 825e943Copy full SHA for 825e943
uvloop/cbhandles.pyx
@@ -424,7 +424,16 @@ cdef extract_stack():
424
return
425
426
try:
427
- stack = tb_StackSummary.extract(tb_walk_stack(f),
+ frames = []
428
+ while f is not None:
429
+ lineno = getattr(f, "f_lineno", None)
430
+ if lineno is None:
431
+ break
432
+ if getattr(f, "f_code", None) is None:
433
434
+ frames.append((f, lineno))
435
+ f = getattr(f, "f_back", None)
436
+ stack = tb_StackSummary.extract(frames,
437
limit=DEBUG_STACK_DEPTH,
438
lookup_lines=False)
439
finally:
0 commit comments