Skip to content

Commit

Permalink
Update chatdbg_pdb.py
Browse files Browse the repository at this point in the history
Revert `line[0]` back to `line[:1]`.  The former crashes on an empty line; the latter is the empty string.  Could refactor but don't want to make unnecessary changes...
  • Loading branch information
stephenfreund authored Sep 1, 2024
1 parent a9a41cf commit 6554aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chatdbg/chatdbg_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ def _capture_onecmd(self, line):
self.lastcmd = lastcmd

def default(self, line):
if line[0] == "!":
if line[:1] == "!":
super().default(line)
else:
if line[0] == ":":
if line[:1] == ":":
line = line[1:].strip()
self.do_chat(line)

Expand Down

0 comments on commit 6554aa1

Please sign in to comment.