Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Base Exception should also be catched here, crashed when ProgrammingError #33

Open
piyusql opened this issue May 29, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@piyusql
Copy link
Contributor

piyusql commented May 29, 2023

https://github.com/vmware/bridgeql/blob/cb3055ac88f352d2531d1e0cd4036e96a4e0d805/bridgeql/django/bridge.py#L50

We have tested a case when DB raised the permission error and it was unable to handle

ProgrammingError: permission denied for table <table_name>

File "py27env/lib/python2.7/site-packages/bridgeql/django/bridge.py", line 50, in read_django_model
qset = mb.queryset()  # get the result based on the given parameters
File "py27env/lib/python2.7/site-packages/bridgeql/django/models.py", line 328, in queryset
return list(self.qset)
@piyusql piyusql added the bug Something isn't working label May 29, 2023
@piyusql piyusql added this to the v0.2.4 milestone May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants