8000 Removed assertions that were hiding exceptions by zefciu · Pull Request #238 · graphql-python/graphene-sqlalchemy · GitHub
[go: up one dir, main page]

Skip to content

Removed assertions that were hiding exceptions #238

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

Closed
wants to merge 1 commit into from

Conversation

zefciu
Copy link
@zefciu zefciu commented Jul 22, 2019

The two assertions that were testing the sqlalchemy classes and instances
worked by catching and silencing exceptions. This could cause debugging
problems like:

#121
#122

on the other hand without them, if someone uses unmapped class/model it
would be trivial to diagnose the problem. So I believe we would be
better off without them.

Fixes: #121

The two assertions that were testing the sqlalchemy classes and instances
worked by catching and silencing exceptions. This could cause debugging
problems like:

graphql-python#121
graphql-python#122

on the other hand without them, if someone uses unmapped class/model it
would be trivial to diagnose the problem. So I believe we would be
better off without them.
@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling d8f59b0 on zefciu:master into c89cf80 on graphql-python:master.

@jnak
Copy link
Collaborator
jnak commented Aug 6, 2019

Thanks for sending a PR. I agree it's frustrating that SQLAlchemy issues are currently swallowed. But I also think there is value in providing helpful error messages such as the ones from the failing tests. Would you updating this PR so it does both and both cases are tested?

Thanks!

@ryarasi
Copy link
ryarasi commented Nov 27, 2021

Why is this an open issue even after 2 yrs??!

So many of us are wasting countless hours on troubleshooting with invisible debug data :'(

@rimu
Copy link
rimu commented Feb 6, 2022

This project is pretty much maintenance-only. Better not to use it.

@erikwrede
Copy link
Member

@ryarasi I've just merged #169 which should fix this issue, but provide additional error messages.

@erikwrede
Copy link
Member

Closing this in favor of #169

@erikwrede erikwrede closed this Apr 28, 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.

SQLAlchemyObjectType hides original SQLAlchemy exception
6 participants
0