Skip to content

Commit d532b56

Browse files
committed
Trac #21203 review issue 10: use "raise ... from None" where approriate
1 parent 1dbecfd commit d532b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,4 @@ def _n_to_index_(self, n):
362362
try:
363363
return W(n.digits(self.k))
364364
except OverflowError:
365-
raise ValueError('value {} of index is negative'.format(n))
365+
raise ValueError('value {} of index is negative'.format(n)) from None

0 commit comments

Comments
 (0)