Skip to content

Crash attributed to some error in birthday csv #35

@pcichowski

Description

@pcichowski
Unhandled exception in internal background task 'send_stats'.
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/nextcord/ext/tasks/__init__.py", line 145, in _loop
    await self.coro(*args, **kwargs)
  File "/app/utils/utils.py", line 83, in send_stats
    await broadcast_stats()
  File "/app/utils/utils.py", line 66, in broadcast_stats
    embed = await message_templates.daily_stats_embed(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/ui/message_templates.py", line 12, in daily_stats_embed
    birthday_message, num_of_birthdays = await get_birthday_message(our_server)
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/logic/logic.py", line 186, in get_birthday_message
    ret += str(todays_date.year - int(row[i + 1])) + ' lat\n'
                                  ^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions