uc-cdis / peregrine

GraphQL search API service
Apache License 2.0
11 stars 9 forks source link

Handle exceptions without 'message' attribute #178

Closed paulineribeyre closed 3 years ago

paulineribeyre commented 3 years ago

Fix this error seen in IBD Prod Peregrine:

File "/peregrine/peregrine/resources/submission/graphql/__init__.py", line 126, in <listcomp>
    errors = [err.message for err in result.errors]
AttributeError: 'Exception' object has no attribute 'message'

relates to https://github.com/uc-cdis/pidgin/pull/40

Bug Fixes

github-actions[bot] commented 3 years ago

The style in this PR agrees with black. :heavy_check_mark:

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