Skip to content

Commit c50b200

Browse files
committed
Refactor exception variable naming in pdb.py for clarity
Signed-off-by: Frost Ming <[email protected]>
1 parent bd05b89 commit c50b200

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/pdb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,12 +3577,12 @@ def main():
35773577
parser.error("argument -m: not allowed with argument --pid")
35783578
try:
35793579
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}")
3580+
except RuntimeError as exc:
3581+
while exc.__context__ is not None:
3582+
exc = exc.__context__
3583+
print(f"Error attaching to process: {exc}")
35843584
sys.exit(1)
3585-
except PermissionError as e:
3585+
except PermissionError:
35863586
exit_with_permission_help_text()
35873587
return
35883588
elif opts.module:

0 commit comments

Comments
 (0)