Skip to content

Instantly share code, notes, and snippets.

@victorhooi
Created January 9, 2012 05:02
Show Gist options
  • Save victorhooi/1581217 to your computer and use it in GitHub Desktop.
Save victorhooi/1581217 to your computer and use it in GitHub Desktop.
Django 1.4 and Sentry - Timezone Error
[09/Jan/2012 15:57:26] "GET /sasdfasdf HTTP/1.1" 500 59
Unable to process log entry: can't subtract offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/home/victorhooi/.virtualenvs/aegnexus/src/sentry/sentry/manager.py", line 322, in from_kwargs
group, is_new, is_sample = self._create_group(event, **group_kwargs)
File "/home/victorhooi/.virtualenvs/aegnexus/src/sentry/sentry/manager.py", line 366, in _create_group
silence_timedelta = date - group.last_seen
TypeError: can't subtract offset-naive and offset-aware datetimes
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/core/handlers/wsgi.py", line 241, in __call__
response = self.get_response(request)
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/core/handlers/base.py", line 153, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/core/handlers/base.py", line 228, in handle_uncaught_exception
return callback(request, **param_dict)
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/views/defaults.py", line 32, in server_error
t = loader.get_template(template_name) # You need to create a 500.html template.
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/template/loader.py", line 145, in get_template
template, origin = find_template(template_name)
File "/home/victorhooi/.virtualenvs/aegnexus/src/django/django/template/loader.py", line 138, in find_template
raise TemplateDoesNotExist(name)
TemplateDoesNotExist: 500.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment