Skip to content

Commit dcc7cd1

Browse files
committed
Trac #21204: cherry-pick to avoid merge conflict
1 parent e726278 commit dcc7cd1

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
@@ -883,7 +883,7 @@ def _n_to_index_(self, n):
883883
try:
884884
return W(n.digits(self.k))
885885
except OverflowError:
886-
raise ValueError('value {} of index is negative'.format(n))
886+
raise ValueError('value {} of index is negative'.format(n)) from None
887887

888888
def guess(self, f, n_max=100, max_dimension=10, sequence=None):
889889
r"""

0 commit comments

Comments
 (0)