Browse Source

Correct import

Ewoud Kohl van Wijngaarden 13 years ago
parent
commit
fb0a37e7f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      netfields/managers.py

+ 2 - 2
netfields/managers.py

@@ -40,8 +40,8 @@ class NetWhere(sql.where.WhereNode):
         if hasattr(lvalue, 'process'):
             try:
                 lvalue, params = lvalue.process(lookup_type, params_or_value, connection)
-            except EmptyShortCircuit:
-                raise EmptyResultSet
+            except sql.where.EmptyShortCircuit:
+                raise query.EmptyResultSet
         else:
             return super(NetWhere, self).make_atom(child, qn, conn)