We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd05b89 commit c50b200Copy full SHA for c50b200
Lib/pdb.py
@@ -3577,12 +3577,12 @@ def main():
3577
parser.error("argument -m: not allowed with argument --pid")
3578
try:
3579
attach(opts.pid, opts.commands)
3580
- except RuntimeError as e:
3581
- while e.__context__ is not None:
3582
- e = e.__context__
3583
- print(f"Error attaching to process: {e}")
+ except RuntimeError as exc:
+ while exc.__context__ is not None:
+ exc = exc.__context__
+ print(f"Error attaching to process: {exc}")
3584
sys.exit(1)
3585
- except PermissionError as e:
+ except PermissionError:
3586
exit_with_permission_help_text()
3587
return
3588
elif opts.module:
0 commit comments