-
Notifications
You must be signed in to change notification settings - Fork 517
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
Error audit protocols #543
Error audit protocols #543
Conversation
Signed-off-by: sklump <[email protected]>
Signed-off-by: sklump <[email protected]>
Signed-off-by: sklump <[email protected]>
…ent-python into error-audit-protocols
Signed-off-by: sklump <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #543 +/- ##
==========================================
+ Coverage 96.39% 96.42% +0.02%
==========================================
Files 240 240
Lines 12575 12657 +82
==========================================
+ Hits 12122 12204 +82
Misses 453 453 |
@@ -40,6 +40,7 @@ async def sign(request: web.BaseRequest): | |||
try: | |||
context = request.app["request_context"] | |||
wallet: BaseWallet = await context.inject(BaseWallet) | |||
wallet: BaseWallet = await context.inject(BaseWallet) |
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.
Accidental commit?
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.
Good catch: I will fix it
my_label = request.query.get("my_label") or None | ||
my_endpoint = request.query.get("my_endpoint") or None | ||
request = await connection_mgr.create_request(connection, my_label, my_endpoint) | ||
except (StorageError, WalletError, ConnectionManagerError, BaseModelError) as err: |
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.
Should it just catch BaseError?
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.
I think it's OK to be specific here: catching an omnibus error will probably make LGTM-bot squawk.
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.
I'd prefer to see what can happen in particular.
Signed-off-by: sklump <[email protected]>
No description provided.