Skip to content

Conversation

@godlygeek
Copy link
Contributor

@godlygeekgodlygeek commented May 4, 2025

When a line begins with ! and there's no do_shell method defined, parsecmd returns None as the cmd, which incorrectly leads to None being concatenated to complete_ and triggering a TypeError.

Instead, recognize None as a sentinel that means we should call completedefault, as an empty string already is.

When a line begins with `!` and there's no `do_shell` method defined, `parsecmd` returns `None` as the `cmd`, which incorrectly leads to `None` being concatenated to `complete_` and triggering a `TypeError`. Instead, recognize `None` as a sentinel that means we should call `completedefault`, as an empty string already is.
@godlygeek
Copy link
ContributorAuthor

Actually, let me close this and open a new issue for it, since this probably deserves a real news entry unrelated to PDB...

@gaogaotiantian
Copy link
Member

You can just change the gh issue number.

@godlygeek
Copy link
ContributorAuthor

Too late, I wasn't sure so I opened #133364 😓

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@godlygeek@gaogaotiantian