Explorar el Código

Fix django fixup for Django < 1.6

Georgy Cheshkov hace 12 años
padre
commit
81fb7f46ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/fixups/django.py

+ 1 - 1
celery/fixups/django.py

@@ -89,7 +89,7 @@ class DjangoFixup(object):
             self._close_old_connections = symbol_by_name(
                 'django.db:close_old_connections',
             )
-        except ImportError:
+        except (ImportError, AttributeError):
             self._close_old_connections = None
         self.database_errors = (
             (DatabaseError, ) +