Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #21203 review issue 10: use "raise ... from None" where approriate
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed May 11, 2021
1 parent 1dbecfd commit d532b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/combinat/k_regular_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,4 @@ def _n_to_index_(self, n):
try:
return W(n.digits(self.k))
except OverflowError:
raise ValueError('value {} of index is negative'.format(n))
raise ValueError('value {} of index is negative'.format(n)) from None

0 comments on commit d532b56

Please sign in to comment.