Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit acd253d

Browse files
committed
Merge pull request #110 from robertbasic/fix/issue109
only remove breakpoint if it has an ID. Fixes #109
2 parents 1507c8f + c156998 commit acd253d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pugdebug/pugdebug.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,9 @@ def remove_breakpoint(self, breakpoint):
591591

592592
return
593593

594-
breakpoint_id = int(breakpoint['id'])
595-
self.debugger.remove_breakpoint(breakpoint_id)
594+
if 'id' in breakpoint:
595+
breakpoint_id = int(breakpoint['id'])
596+
self.debugger.remove_breakpoint(breakpoint_id)
596597

597598
def remove_stale_breakpoints(self, path):
598599
"""Remove stale breakpoints for a file

0 commit comments

Comments
 (0)