Add debug complete event `None`-guard for when already reset
parent
83b44cf469
commit
5ad540c417
|
@ -126,7 +126,8 @@ class Lock:
|
||||||
try:
|
try:
|
||||||
# sometimes the ``trio`` might already be terminated in
|
# sometimes the ``trio`` might already be terminated in
|
||||||
# which case this call will raise.
|
# which case this call will raise.
|
||||||
cls.local_pdb_complete.set()
|
if cls.local_pdb_complete is not None:
|
||||||
|
cls.local_pdb_complete.set()
|
||||||
finally:
|
finally:
|
||||||
# restore original sigint handler
|
# restore original sigint handler
|
||||||
cls.unshield_sigint()
|
cls.unshield_sigint()
|
||||||
|
|
Loading…
Reference in New Issue