Commits

Andrew Godwin committed 5cc9f23

Compatability fix for older Python versions.

  • Participants
  • Parent commits 2aa2394

Comments (0)

Files changed (1)

File south/db/generic.py

         try:
             ret = _lookup()
             return ret
-        except INVALID as e:
+        except INVALID, e:
             del self._constraint_cache[db_name][table_name]
             self._fill_constraint_cache(db_name, table_name)
-        except KeyError as e:
+        except KeyError, e:
             if self._is_valid_cache(db_name, table_name):
                 return []
             self._fill_constraint_cache(db_name, table_name)