Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2330 -- Added hack to stop KeyErrors from being thrown by the …

…autoreloading development server if USE_I18N=False

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1bf811e28dc33c1877fd45308f5736614778c226 1 parent 1cf552d
Adrian Holovaty authored July 28, 2006

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  django/utils/autoreload.py
8  django/utils/autoreload.py
@@ -35,6 +35,14 @@
35 35
 except ImportError:
36 36
     import dummy_thread as thread
37 37
 
  38
+# This import does nothing, but it's necessary to avoid some race conditions
  39
+# in the threading module. See http://code.djangoproject.com/ticket/2330 .
  40
+try:
  41
+    import threading
  42
+except ImportError:
  43
+    pass
  44
+
  45
+
38 46
 RUN_RELOADER = True
39 47
 
40 48
 def reloader_thread():

0 notes on commit 1bf811e

Please sign in to comment.
Something went wrong with that request. Please try again.