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

Commit2e6c7de

Browse files
committed
change wording of exception
1 parentb0c7dbd commit2e6c7de

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎Lib/pdb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,7 @@ def interaction(self, frame, tb_or_exc):
492492

493493
_chained_exceptions,tb=self._get_tb_and_exceptions(tb_or_exc)
494494
ifnot_chained_exceptionsandisinstance(tb_or_exc,BaseException):
495-
raiseValueError(
496-
"A valid traceback must be passed if no exception is being handled"
497-
)
495+
raiseValueError("No exception traceback to inspect")
498496
withself._hold_exceptions(_chained_exceptions):
499497
ifself.setup(frame,tb):
500498
# no interaction desired at this time (happens if .pdbrc contains

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp