We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a26660 commit 1d21e23Copy full SHA for 1d21e23
main.py
@@ -184,9 +184,11 @@ def load_processed_files_into_bigquery(event, context):
184
load_job.result()
185
print(f"Loaded {load_job.output_rows} rows into {DATASET}:{SIMPLE_TABLE}")
186
187
- with storage_client.batch():
188
- for blob in download_source_blobs:
189
- blob.delete()
190
191
- for blob in simple_source_blobs:
192
+ if len(download_source_blobs) > 0:
+ with storage_client.batch():
+ for blob in download_source_blobs:
+ blob.delete()
+ if len(simple_source_blobs) > 0:
193
+ for blob in simple_source_blobs:
194
0 commit comments