summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 67a0846..5a80fa8 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -336,11 +336,11 @@ class Bdb:
try:
number = int(arg)
except ValueError:
- raise ValueError('Non-numeric breakpoint number %s' % arg)
+ raise ValueError('Non-numeric breakpoint number %s' % arg) from None
try:
bp = Breakpoint.bpbynumber[number]
except IndexError:
- raise ValueError('Breakpoint number %d out of range' % number)
+ raise ValueError('Breakpoint number %d out of range' % number) from None
if bp is None:
raise ValueError('Breakpoint %d already deleted' % number)
return bp