-
Notifications
You must be signed in to change notification settings - Fork 20
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
HSClient handling #253
HSClient handling #253
Conversation
* fix(dos): errors
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
@@ -120,22 +127,26 @@ def indexd_to_dos(record): | |||
|
|||
@blueprint.errorhandler(UserError) | |||
def handle_user_error(err): | |||
return flask.jsonify(error=str(err)), 400 | |||
ret = {"msg": str(err), "status_code": 400} |
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.
why do you need to return the status code also in the response data?
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 don't know why it was done this way, but a production website is using a branch with this change so i'd rather not change the contents of the response
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.
Left a question but nothing blocking - LGTM
dataguids.org uses the feat/hs branch - merge it into master so that we can pin dataguids.org
New Features