Andrew Godwin  committed 6a7a84c

Don't let spurious IndentationErrors bring down the introspector.

  • Participants
  • Parent commits f5ffe4c
  • Branches default

Comments (0)

Files changed (1)

File south/

     # Now, ask the parser to have a look at this model too.
         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