Python traceback
Nathan Osman — 5 months ago


2024-05-07 15:29:28,866 INFO OK: /events/2024/6/
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 534, in thread_handler
raise exc_info[1]
File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 42, in inner
response = await get_response(request)
File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 253, in _get_response_async
response = await wrapped_callback(
File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 479, in __call__
ret: _R = await loop.run_in_executor(
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/asgiref/sync.py", line 538, in thread_handler
return func(*args, **kwargs)
File "/usr/src/app/./events/views.py", line 103, in calendar
events_in_month = Event.in_month(year, month)
File "/usr/src/app/./events/models.py", line 61, in in_month
if e.last and datetime.date(year, month, day0 + 1) > e.last:
ValueError: day is out of range for month