Quellcode durchsuchen

/upload: NoneType object is not iterable

TheHamkerCat vor 5 Jahren
Ursprung
Commit
1559b42f11
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      wbb/modules/arq_storage.py

+ 1 - 1
wbb/modules/arq_storage.py

@@ -80,7 +80,7 @@ async def arq_upload(_, message):
         async with UPLOAD_LOCK:
         async with UPLOAD_LOCK:
             r = message.reply_to_message
             r = message.reply_to_message
 
 
-            file_id = get_file_id_from_message(r, 100000000, None)
+            file_id = get_file_id_from_message(r, 100000000, [])
             if not file_id:
             if not file_id:
                 return await message.reply("Unsupported media.")
                 return await message.reply("Unsupported media.")