Skip to content

Commit

Permalink
Merge pull request #24 from PhlJns99/fix_null_relation_name_error
Browse files Browse the repository at this point in the history
Check if dictionary key "relation_name" exists before using
  • Loading branch information
rfdearborn authored May 13, 2024
2 parents 6f49838 + d89678c commit 27edd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_docs_to_notion.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def main(argv=None):
"rich_text": [
{
"text": {
"content": data['relation_name'][:2000]
"content": data['relation_name'][:2000] if 'relation_name' in data else ""
}
}
]
Expand Down

0 comments on commit 27edd96

Please sign in to comment.