Skip to content

leveler, anything to do with images broke #44

Description

@GGrandma

I have looked into this for a while trying to see if it is on my side, I belive this is not because of me. Here is a log when I try to do [p]profile

Exception in command 'profile'
Traceback (most recent call last):
File "lib/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/home/pi/Desktop/PeaterBot/cogs/leveler.py", line 105, in profile
await self.draw_profile(user, server)
File "/home/pi/Desktop/PeaterBot/cogs/leveler.py", line 1987, in draw_profile
profile_image = Image.open('data/leveler/temp/{}_temp_profile_profile.png'.format(user.id)).convert('RGBA')
File "lib/PIL/Image.py", line 2572, in open
% (filename if filename else fp))
OSError: cannot identify image file 'data/leveler/temp/208696987082555393_temp_profile_profile.png'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "lib/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "lib/discord/ext/commands/core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "lib/discord/ext/commands/core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: OSError: cannot identify image file 'data/leveler/temp/208696987082555393_temp_profile_profile.png'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions