-
Notifications
You must be signed in to change notification settings - Fork 520
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
Implement B006 rule #2775
Implement B006 rule #2775
Conversation
Signed-off-by: jamshale <[email protected]>
2eabdfa
to
4cf057e
Compare
|
@@ -60,6 +61,8 @@ async def get_wallet_profile( | |||
Profile: Profile for the wallet record | |||
|
|||
""" | |||
extra_settings = extra_settings or {} | |||
|
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.
The extra_settings
dict is overridden later in this function. I didn't want to change anything not related to the task but it seems like this might be a mistake.
@@ -228,10 +228,10 @@ async def schema_get(request: web.BaseRequest): | |||
try: | |||
schema = await anoncreds_registry.get_schema(context.profile, schema_id) | |||
return web.json_response(schema.serialize()) | |||
except AnonCredsObjectNotFound: | |||
raise web.HTTPNotFound(reason=f"Schema not found: {schema_id}") | |||
except AnonCredsObjectNotFound as e: |
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 had all of the B
linting rules enabled for a bit and it flagged this.
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.
LGTM! More instances of this than I was expecting. Thanks!
Add rule
B006
to the linting config and implements it by creating empty objects in the functions when the parameter is None.Didn't add any of the other
B
linting options.