#33674: Timezones cause 500 errors to not email the site admin
---------------------------------+--------------------------------------
     Reporter:  iragm            |                    Owner:  (none)
         Type:  Bug              |                   Status:  closed
    Component:  Error reporting  |                  Version:  4.0
     Severity:  Normal           |               Resolution:  needsinfo
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by iragm):

 {{{
 2022-05-03 06:47:54,594 ERROR    Exception inside application: 'No time
 zone found with key '
 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/base.py", line 253, in _get_response_async
     response = await wrapped_callback(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/opt/production/lib/python3.9/site-
 packages/asgiref/current_thread_executor.py", line 22, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 455, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/generic/base.py", line 84, in view
     return self.dispatch(request, *args, **kwargs)
   File "/opt/production/fishauctions/./auctions/views.py", line 2242, in
 dispatch
     raise DeliberateError("break stuff")
 NameError: name 'DeliberateError' is not defined

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 42, in inner
     response = await get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/deprecation.py", line 150, in __acall__
     response = response or await self.get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 55, in inner
     response = get_response(request)
   File "/opt/production/lib/python3.9/site-
 packages/debug_toolbar/middleware.py", line 48, in __call__
     return self.get_response(request)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 204, in __call__
     return call_result.result()
   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 438, in
 result
     return self.__get_result()
   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 390, in
 __get_result
     raise self._exception
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 270, in main_wrap
     result = await self.awaitable(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 44, in inner
     response = await sync_to_async(
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 453, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 12, in load_tzdata
     return importlib.resources.open_binary(package_name, resource_name)
   File "/usr/lib/python3.9/importlib/resources.py", line 88, in
 open_binary
     package = _get_package(package)
   File "/usr/lib/python3.9/importlib/resources.py", line 49, in
 _get_package
     module = _resolve(package)
   File "/usr/lib/python3.9/importlib/resources.py", line 40, in _resolve
     return import_module(name)
   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in
 import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
   File "<frozen importlib._bootstrap>", line 972, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 228, in
 _call_with_frames_removed
   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
   File "<frozen importlib._bootstrap>", line 984, in
 _find_and_load_unlocked
 ModuleNotFoundError: No module named 'tzdata'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/production/lib/python3.9/site-packages/channels/routing.py",
 line 71, in __call__
     return await application(scope, receive, send)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/asgi.py", line 155, in __call__
     await self.handle(scope, receive, send)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/asgi.py", line 177, in handle
     response = await self.get_response_async(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/base.py", line 162, in get_response_async
     response = await self._middleware_chain(request)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 414, in __call__
     ret = await asyncio.wait_for(future, timeout=None)
   File "/usr/lib/python3.9/asyncio/tasks.py", line 442, in wait_for
     return await fut
   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
     result = self.fn(*self.args, **self.kwargs)
   File "/opt/production/lib/python3.9/site-packages/asgiref/sync.py", line
 455, in thread_handler
     return func(*args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 57, in inner
     response = response_for_exception(request, exc)
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 139, in
 response_for_exception
     response = handle_uncaught_exception(
   File "/opt/production/lib/python3.9/site-
 packages/django/core/handlers/exception.py", line 184, in
 handle_uncaught_exception
     return callback(request)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/decorators.py", line 133, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/opt/production/lib/python3.9/site-
 packages/django/views/defaults.py", line 102, in server_error
     return HttpResponseServerError(template.render())
   File "/opt/production/lib/python3.9/site-
 packages/django/template/backends/django.py", line 62, in render
     return self.template.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 175, in render
     return self._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/loader_tags.py", line 157, in render
     return compiled_parent._render(context)
   File "/opt/production/lib/python3.9/site-packages/django/test/utils.py",
 line 111, in instrumented_test_render
     return self.nodelist.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in render
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 1000, in <listcomp>
     return SafeString("".join([node.render_annotated(context) for node in
 self]))
   File "/opt/production/lib/python3.9/site-
 packages/django/template/base.py", line 958, in render_annotated
     return self.render(context)
   File "/opt/production/lib/python3.9/site-
 packages/django/templatetags/tz.py", line 146, in render
     with timezone.override(self.tz.resolve(context)):
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 157, in __enter__
     activate(self.timezone)
   File "/opt/production/lib/python3.9/site-
 packages/django/utils/timezone.py", line 121, in activate
     _active.value = zoneinfo.ZoneInfo(timezone)
   File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
 zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key '

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33674#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180898f2dd4-624477ba-edde-4c79-ba8f-ecf9e68c5cbb-000000%40eu-central-1.amazonses.com.

Reply via email to