Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up error handling in hwilib #184

Merged
merged 7 commits into from
Jun 18, 2019

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented May 28, 2019

No description provided.

@achow101
Copy link
Member

Concept ACK

Can you also do this in cli.py?

@jb55 jb55 force-pushed the handle-errors-util branch 4 times, most recently from a7c3db7 to 8fdd5e0 Compare June 17, 2019 04:24
@jb55
Copy link
Contributor Author

jb55 commented Jun 17, 2019

I'm not sure if these are covered by tests, I'm doing these refactors without a way of testing them.

@jb55 jb55 force-pushed the handle-errors-util branch 2 times, most recently from 0865f9b to a81d051 Compare June 17, 2019 14:28
@jb55
Copy link
Contributor Author

jb55 commented Jun 18, 2019

Can you also do this in cli.py?

@achow101 done

hwilib/cli.py Show resolved Hide resolved
jb55 added 7 commits June 18, 2019 09:19
This can be used in with blocks to abstract our error handling

Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin
@achow101
Copy link
Member

ACK f430e25

@achow101 achow101 merged commit f430e25 into bitcoin-core:master Jun 18, 2019
achow101 added a commit that referenced this pull request Jun 18, 2019
f430e25 cli: use handle_errors (William Casarin)
5d1c2bb ledger: use handle_errors in enumerate (William Casarin)
53104be digitalbitbox: use handle_errors in enumerate (William Casarin)
42fbeaa trezor: use handle_errors in enumerate (William Casarin)
b6ca7d9 coldcard: use handle_errors in enumerate (William Casarin)
313e012 keepkey: use handle_errors in enumerate (William Casarin)
c75b5e2 errors: add handle_errors helper (William Casarin)

Pull request description:

ACKs for commit f430e2:
  achow101:
    ACK f430e25

Tree-SHA512: 751584a4db1b1321909804c388bd4475901ddeacddb9750d19140ca60f824c806f8fdacdee2d8a57c7f4549cda99871e3f16988b678ea216a5e701c15d7f7db3
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.

2 participants