-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Example bad zip: https://discord.com/channels/555424930502541343/1421307552079155253/1421312563320455239
File is not a zip file
File "/app/venv/lib/python3.12/site-packages/nextcord/client.py", line 527, in _run_event
await coro(*args, **kwargs)
File "/app/fred/fred.py", line 321, in on_message
_reacted = await self.Crashes.process_message(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/fred/cogs/crashes.py", line 365, in process_message
raise ex
File "/app/fred/cogs/crashes.py", line 354, in process_message
jobs.extend((task_group.create_task(job) for job in self._get_file_jobs(name, file)))
File "/app/fred/cogs/crashes.py", line 354, in <genexpr>
jobs.extend((task_group.create_task(job) for job in self._get_file_jobs(name, file)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/fred/cogs/crashes.py", line 257, in _get_file_jobs
zip_file = ZipFile(file)
^^^^^^^^^^^^^
File "/usr/lib/python3.12/zipfile/__init__.py", line 1354, in __init__
self._RealGetContents()
File "/usr/lib/python3.12/zipfile/__init__.py", line 1421, in _RealGetContents
raise BadZipFile("File is not a zip file")
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers
Type
Projects
Status
📋 Backlog