-
Notifications
You must be signed in to change notification settings - Fork 19
Update exceptions and cleanup code #169
Conversation
- per #888:
- removed logzero dependency
- updated and clarified exception types raised
- implemented OrdinalError, MessageError, and LegendaireExponentError
ixje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good changes. There's a couple of inline comments I made and there's one more request I'd like to do here: Please update the docstrings to include the exceptions raised.
I know they're not always documented, and some might now have changed from Exception to ValueError or whatever. But we should really add them. See the style here: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
something along the lines of
Raises:
<exception type>: <description/cause>
ixje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Just a couple of docstring suggestions/requests. The rest looks good :)
|
Before I can merge this we must update |
|
Okay. I will start working on neo-python as well. Perhaps, I will be able to point |
- also correct 2 more typos
15450d9 to
e81e399
Compare
|
I fixed the issues created by the updates in this branch CityOfZion/neo-python@master...jseagrave21:support-#888. |
- increase Crypto.py coverage to 100%
|
After adding the above test, I am wondering if every user will understand that the
hexstr while the message here
hexstr or a normal str.
|
|
@ixje okay, I think it should be good |
|
Based on achieving a passing build and resolving all reviews/comments, I am reverting |
ixje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see reasoning in comments
|
200 points jseagrave |

What current issue(s) does this address, or what feature is it adding?
See CityOfZion/neo-python#888
How did you solve this problem?
logzerodependencyLegendaireExponentErrorHow did you make sure your solution works?
make testDid you add any tests?
only updated tests
edit
Added 1 test to increase
Crypto.pycoverage to 100%Did you run
make lintandmake coverage?Yes
Are there any special changes in the code that we should be aware of?
No