Fixed a bug that had binary stls be handled by the ascii stl parser.
authorAeva Ntsc <aeva.ntsc@gmail.com>
Sun, 24 Mar 2013 21:12:55 +0000 (16:12 -0500)
committerAeva Ntsc <aeva.ntsc@gmail.com>
Sun, 24 Mar 2013 21:12:55 +0000 (16:12 -0500)
mediagoblin/media_types/stl/model_loader.py

index 60fa4851567eae5c62f95e0ae9c28a84b2a7bf81..528c82fa7885683d13ddc3acf1feeb6216b5da9e 100644 (file)
@@ -121,6 +121,8 @@ def auto_detect(fileob, hint):
             pass
         except ValueError:
             pass
+        except IndexError:
+            pass
         try:
             # It is pretty important that the binary stl model loader
             # is tried second, because its possible for it to parse