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

Catch error instead of 500 #369

Merged
merged 1 commit into from
Jun 9, 2022
Merged

Catch error instead of 500 #369

merged 1 commit into from
Jun 9, 2022

Conversation

paulineribeyre
Copy link
Contributor

Catch this error that causes Sheepdog to return a 500, and return a 400 instead:

  File "/sheepdog/sheepdog/blueprint/routes/views/program/__init__.py", line 198, in create_project
    node.props.update(doc)
  File "/usr/local/lib/python3.6/site-packages/psqlgraph/attributes.py", line 76, in update
    raise AttributeError("{} has no property {}".format(self.source, key))
AttributeError: <Project(029d0e6b-781b-52cc-ba36-748639545662)> has no property programs

@PlanXCyborg
Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@paulineribeyre paulineribeyre merged commit 0258577 into master Jun 9, 2022
@paulineribeyre paulineribeyre deleted the fix-500 branch June 9, 2022 20:40
grugna added a commit to chicagopcdc/sheepdog that referenced this pull request Jun 30, 2022
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