AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
sentry-io opened this issue · 0 comments
sentry-io commented
Sentry Issue: SIR-LANCEBOT-A6
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
File "bot/exts/fun/snakes/_snakes_cog.py", line 1011, in card_command
final_buffer = await self.bot.loop.run_in_executor(None, func)
File "bot/exts/fun/snakes/_snakes_cog.py", line 245, in _generate_card
offset += CARD["font"].getsize(line)[1]
Unhandled command error: 'FreeTypeFont' object has no attribute 'getsize'