Skip to content

Commit c294c31

Browse files
authored
Merge pull request #25 from PhlJns99/fix_null_relation_name_error
Prevent noneType is not subscriptable errors for relation_name
2 parents 27edd96 + 66aa18d commit c294c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbt_docs_to_notion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def main(argv=None):
412412
"rich_text": [
413413
{
414414
"text": {
415-
"content": data['relation_name'][:2000] if 'relation_name' in data else ""
415+
"content": data['relation_name'][:2000] if data['relation_name'] else ""
416416
}
417417
}
418418
]

0 commit comments

Comments
 (0)