Skip to content
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

fix(tableau): extra defensive error-handling #6503

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Nov 21, 2022

We were previously seeing this error:

AttributeError: 'NoneType' object has no attribute 'get'

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Nov 21, 2022
Copy link
Contributor

@treff7es treff7es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@@ -374,7 +374,9 @@ def get_connection_object_page(
if "errors" in query_data:
errors = query_data["errors"]
if all(
error.get("extensions", {}).get("severity", None) == "WARNING"
# The format of the error messages is highly unpredictable, so we have to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Our culture on connectors needs to be one of zero trust for objects we receive from foreign APIs. How can we move toward doing this ~~~everywhere~~~?

@hsheth2 hsheth2 merged commit fdb74b0 into datahub-project:master Nov 21, 2022
@hsheth2 hsheth2 deleted the tablea-fix branch November 21, 2022 19:40
cccs-Dustin pushed a commit to CybercentreCanada/datahub that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants