Skip to content

Commit bfea5d6

Browse files
committed
avoid key error
1 parent fbdf44e commit bfea5d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sourceplusplus/control/ContextReceiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def apply_log(live_log_id, globals, locals):
9191

9292

9393
def apply_breakpoint(live_breakpoint_id, globals, locals):
94-
del globals["SourcePlusPlus"]
95-
del locals["ContextReceiver"]
94+
globals.pop("SourcePlusPlus", None)
95+
locals.pop("ContextReceiver", None)
9696

9797
live_breakpoint: LiveBreakpoint = LiveInstrumentRemote.instruments[live_breakpoint_id][1]
9898
if live_breakpoint.throttle.is_rate_limited():

0 commit comments

Comments
 (0)