Skip to content

Commit 73fe339

Browse files
committed
Merge branch 't/21203/sequences/k-regular' into t/21318/sequences/rec-basic-arith
* t/21203/sequences/k-regular: Trac #21203 review issue 10: use "raise ... from None" where approriate
2 parents 0f8fb2e + d532b56 commit 73fe339

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)