Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-126944: Better error for missing arg in pdb#126945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
hauntsaninja wants to merge3 commits intopython:mainfromhauntsaninja:126944

Conversation

@hauntsaninja
Copy link
Contributor

@hauntsaninjahauntsaninja commentedNov 18, 2024
edited by bedevere-appbot
Loading

def_getval(self,arg):
try:
returneval(arg,self.curframe.f_globals,self.curframe.f_locals)
except:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could we add more detailed error handling, even if it's just

expectException:

would be better

@gaogaotiantian
Copy link
Member

This might be the minimum amount of code to fix the issue, but I don't think this is the correct place. It's not obvious why_getval would generate an error message. We should check the args for all the commands that require an argument (see many_print_invalid_args() calls inpdb.py) and print the error if the argument is missing.

@hauntsaninjahauntsaninja deleted the 126944 branchApril 6, 2025 21:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gaogaotiantiangaogaotiantianAwaiting requested review from gaogaotiantiangaogaotiantian is a code owner

1 more reviewer

@Wulian233Wulian233Wulian233 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hauntsaninja@gaogaotiantian@Wulian233

[8]ページ先頭

©2009-2025 Movatter.jp