Skip to content

Commit d89678c

Browse files
committed
Check if dictionary key "relation_name" exists before using
1 parent 6f49838 commit d89678c

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]
415+
"content": data['relation_name'][:2000] if 'relation_name' in data else ""
416416
}
417417
}
418418
]

0 commit comments

Comments
 (0)