-
Notifications
You must be signed in to change notification settings - Fork 64
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
ignore carto python warnings #1103
Conversation
@@ -9,6 +9,9 @@ | |||
from ...utils.geom_utils import setting_value_exception | |||
from ...utils.columns import normalize_name | |||
|
|||
from warnings import filterwarnings |
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.
Is that still necessary after removing warnings in CARTO Python?
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.
Yes, it is. In this case, to get the info about datasets from a CARTO account (we need to get the privacy), we are using a non public API. In the carto-python code we are raising a FutureWarning
warning about that. This is what we are filtering here.
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.
By the way, we have some of them spread by the CARTOframes code
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.
LGTM
Solves a part of #1090
CR and merge CartoDB/carto-python#154 first.
Then, I will remove the(done)filterwarnings
fromapi_context
file