﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19708	django.utils.timezone.override helper may raise AttributeError	Rafal Stozek	Aymeric Augustin	"Here's a simple test case:
{{{
>>> from django.utils import timezone
>>> timezone.deactivate()
>>> with timezone.override(None):
...     pass
... 
Traceback (most recent call last):
  File ""<console>"", line 2, in <module>
  File ""/django/django/utils/timezone.py"", line 204, in __exit__
    del _active.value
AttributeError: value
}}}

This happens in {{{__exit__()}}} method of override helper when current timezone is deactivated and we try to use override with None argument (which is valid - it means that we want to deactivate current timezone)."	Bug	closed	Uncategorized	1.4	Normal	fixed	timezone utils		Accepted	0	0	0	0	0	0
