Catching ValueError when trying to use ObjModel on binary stl files.
authorAeva Ntsc <aeva.ntsc@gmail.com>
Tue, 16 Oct 2012 05:37:44 +0000 (00:37 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 3 Dec 2012 20:40:48 +0000 (14:40 -0600)
mediagoblin/media_types/stl/model_loader.py

index 12a400e227e7fb8106f001d4960793fcf8969522..a417b04c84f84b4b5b74f4a108d83ab20fcb30ff 100644 (file)
@@ -140,6 +140,8 @@ def auto_detect(fileob, hint):
             return ObjModel(fileob)
         except ThreeDeeParseError:
             pass
+        except ValueError:
+            pass
         try:
             # It is pretty important that the binary stl model loader
             # is tried second, because its possible for it to parse