Skip to content

Commit

Permalink
Merge pull request #25 from PhlJns99/fix_null_relation_name_error
Browse files Browse the repository at this point in the history
Prevent noneType is not subscriptable errors for relation_name
  • Loading branch information
rfdearborn authored May 14, 2024
2 parents 27edd96 + 66aa18d commit c294c31
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] if 'relation_name' in data else ""
"content": data['relation_name'][:2000] if data['relation_name'] else ""
}
}
]
Expand Down

0 comments on commit c294c31

Please sign in to comment.