-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Added new exception class and start of better exception/error handling #4514
Conversation
superset/exceptions.py
Outdated
from __future__ import unicode_literals | ||
|
||
|
||
class NoDataException(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should derive superset/utils/SupersetException
, we should have all exception in the same module, whether it's still utils or moving it to exceptions.py works for me as well.
Codecov Report
@@ Coverage Diff @@
## master #4514 +/- ##
==========================================
+ Coverage 71.17% 71.18% +<.01%
==========================================
Files 187 188 +1
Lines 14809 14824 +15
Branches 1085 1085
==========================================
+ Hits 10540 10552 +12
- Misses 4266 4269 +3
Partials 3 3
Continue to review full report at Codecov.
|
apache#4514) * rebase and linting * change back * wip * fixed broken test * fix flake8 * fix test
apache#4514) * rebase and linting * change back * wip * fixed broken test * fix flake8 * fix test
Receiving 500s for client errors from geovis i think a
No Data
response shouldn't be a 500 code since its client error and want to throw 400 status. Also lay work for better error throwing moving forward.@mistercrunch @betodealmeida