Skip to content

Commit

Permalink
Update fiddy/derivative_check.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
  • Loading branch information
stephanmg and dilpath committed Nov 13, 2023
1 parent 9d9747a commit 51279b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fiddy/derivative_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def method(self, *args, **kwargs):
result = True
results.append(result)
except (IndexError, TypeError) as err:
print(
f"Unexpected error encountered: {err} (This should never happen!)"
)
raise ValueError(
f"Unexpected error encountered (This should never happen!)"
) from err

directional_derivative_check_result = (
DirectionalDerivativeCheckResult(
Expand Down

0 comments on commit 51279b5

Please sign in to comment.