Ver Fonte

/upload: NoneType object is not iterable

TheHamkerCat há 5 anos atrás
pai
commit
1559b42f11
1 ficheiros alterados com 1 adições e 1 exclusões
  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:
             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:
                 return await message.reply("Unsupported media.")