Commits

Andrew Godwin committed 6a7a84c

Don't let spurious IndentationErrors bring down the introspector.

Comments (0)

Files changed (1)

south/modelsinspector.py

     # Now, ask the parser to have a look at this model too.
     try:
         parser_fields = modelsparser.get_model_fields(model, m2m) or {}
-    except TypeError: # Almost certainly a not-real module
+    except (TypeError, IndentationError): # Almost certainly a not-real module
         parser_fields = {}
     
     # Now, go through all the fields and try to get their definition
     return meta_def
 
 # Now, load the built-in South introspection plugins
-import south.introspection_plugins
+import south.introspection_plugins