Closed antazoey closed 1 year ago
### What I did So I am minding my own business, running tests in Ape core and all of a sudden I get random assertions errors in ape-etherscan for now reason... ok. I really am easily peeved by assertion errors in production code. That should never happen. So I go and look and comes to find out we are not handling the empty list case at all. So i fix it, and guess what happens? I get something **even more dreadful** ``` RuntimeError: No active exception to reraise ``` what.... why would there ever be an empty raise statement in production code? So i go and fix that too. ### How I did it ### How to verify it Run this test in ape core: ``` pytest tests/functional/test_project.py::test_track_deployment_from_unknown_contract_missing_txn_hash ``` ### Checklist * [ ] Passes all linting checks (pre-commit and CI jobs) * [ ] New test cases have been added and are passing * [ ] Documentation has been updated * [ ] PR title follows [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) standard (will be automatically included in the changelog) --- [ApeWorX/ape-etherscan #101](https://github.com/ApeWorX/ape-etherscan/pull/101) by [antazoey](https://github.com/antazoey) on GitHub *via LinearSync*
This pull request is considered stale because it has been open 30 days with no activity. Remove stale label, add a comment, or make a new commit, otherwise this PR will be closed in 5 days.
fixing tests now
What I did
Fixes: APE-1341
So I am minding my own business, running tests in Ape core and all of a sudden I get random assertions errors in ape-etherscan for now reason... ok.
I really am easily peeved by assertion errors in production code. That should never happen.
So I go and look and comes to find out we are not handling the empty list case at all. So i fix it, and guess what happens? I get something even more dreadful
what.... why would there ever be an empty raise statement in production code? So i go and fix that too.
How I did it
How to verify it
Run this test in ape core:
Checklist