Commits

Andrew Godwin committed b367652

Ignore a few more parsing errors

  • Participants
  • Parent commits 46e9539

Comments (0)

Files changed (1)

File south/modelsinspector.py

             inherited_fields.update(get_model_fields(base))
     
     # Now, ask the parser to have a look at this model too.
-    parser_fields = modelsparser.get_model_fields(model, m2m) or {}
+    try:
+        parser_fields = modelsparser.get_model_fields(model, m2m) or {}
+    except TypeError: # Almost certainly a not-real module
+        parser_fields = {}
     
     # Now, go through all the fields and try to get their definition
     source = model._meta.local_fields[:]