Closed phihag closed 2 weeks ago
Good catch! I adjusted your PR to keep allowing tuple-representations of UUIDs as well, and kept the error message consistent. Thanks for the Contribution 😊
Attention: Patch coverage is 85.71429%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 96.00%. Comparing base (
f2e6814
) to head (e354759
). Report is 8 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
graphene/types/uuid.py | 85.71% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
When a user sends a dictionary or other object as a UUID variable like
{[123]}
, previously graphene crashed with anAttributeError
, like this:But an
AttributeError
makes it seem like this is the server's fault, when it's obviously the client's.Report a proper
GraphQLError
.