Skip to content

Conversation

@joshwatson
Copy link
Contributor

Changed all Exception objects raised to more specific classes implemented in pyevmasm.

Additionally, disassemble_all now catches a ParseError exception that could be thrown by Instruction.parse_operand, which would cause the generator to raise an exception instead of returning None.

Josh Watson added 2 commits October 1, 2018 22:40
Changed all Exception objects raised to more specific classes implemented in pyevmasm.
Additionally, disassemble_all now catches a ParseError exception that could be thrown
by Instruction.parse_operand, which would cause the generator to raise an exception
instead of returning None.
Rather than just a `return` statement, `StopIteration` makes it clearer that the generator is done. They're functionally equivalent, but it's better for clarity in my opinion.
Copy link
Contributor

@computerality computerality left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@computerality computerality merged commit 0a9287c into master Oct 3, 2018
@computerality computerality deleted the dev-exception-improvements branch December 11, 2018 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants