🗝
summary refs log tree commit diff
path: root/3_archive.py
diff options
context:
space:
mode:
authormia <mia@mia.jetzt>2024-11-20 06:52:59 -0800
committermia <mia@mia.jetzt>2024-11-20 06:52:59 -0800
commit88394c7d829c5e25be56f3efffbc9805b64736a5 (patch)
tree7121e65d652643589857819b5123214306346f32 /3_archive.py
parent7e060e5cf2656a0a53d41ea0ff42b753316cd441 (diff)
downloadscrubber-88394c7d829c5e25be56f3efffbc9805b64736a5.tar.gz
scrubber-88394c7d829c5e25be56f3efffbc9805b64736a5.zip
changes and alterations HEAD main
Diffstat (limited to '3_archive.py')
-rw-r--r--3_archive.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/3_archive.py b/3_archive.py
index 39affdd..258392b 100644
--- a/3_archive.py
+++ b/3_archive.py
@@ -74,7 +74,10 @@ def collect_note(id: str):
     output["attachments"] = []
     for file_id in file_ids:
         time.sleep(0.0005)
-        name, type_, comment, url = conn.execute('select name, type, comment, url from drive_file where id = %s', [file_id]).fetchone()
+        row = conn.execute('select name, type, comment, url from drive_file where id = %s', [file_id]).fetchone()
+        if row is None:
+            continue
+        name, type_, comment, url = row
         attachment = {
             "id": file_id,
             "type": type_,