Skip to content

refactor: raise ValueError instead of generic Exception#157

Merged
alexanderthclark merged 1 commit into
mainfrom
codex/replace-exception-with-valueerror-in-modules
Jul 13, 2025
Merged

refactor: raise ValueError instead of generic Exception#157
alexanderthclark merged 1 commit into
mainfrom
codex/replace-exception-with-valueerror-in-modules

Conversation

@alexanderthclark
Copy link
Copy Markdown
Owner

Summary

  • use ValueError for invalid symbol settings
  • validate demand/supply slopes with ValueError
  • raise ValueError for unsupported curve combinations
  • use ValueError for invalid policy interventions or tariff usage
  • update unit tests to expect ValueError

Testing

  • pytest -q

https://chatgpt.com/codex/tasks/task_e_6873ca1d3bcc8327a6751e7855575c49

@alexanderthclark alexanderthclark merged commit 7460e6d into main Jul 13, 2025
3 of 6 checks passed
@alexanderthclark alexanderthclark deleted the codex/replace-exception-with-valueerror-in-modules branch July 13, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant