Skip to content

Commit 7ee4432

Browse files
committed
fix error in parsing document committee sessions
1 parent b84e35e commit 7ee4432

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

airflow/knesset_data_pipelines/committees/parsed_document_committee_sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def update_row_stats(row, stats):
5050
download_filepath = os.path.join(
5151
config.KNESSET_PIPELINES_DATA_PATH,
5252
'committees', 'download_document_committee_session', row['download_filename']
53-
)
54-
if os.path.exists(download_filepath):
53+
) if row['download_filename'] else None
54+
if download_filepath and os.path.exists(download_filepath):
5555
stats['download exists'] += 1
5656
for type_ in ['text', 'parts']:
5757
filepath = os.path.join(

0 commit comments

Comments
 (0)