From ecee8d62c16b7f32b44b50ea4af18c94cecdd998 Mon Sep 17 00:00:00 2001 From: Aeva Ntsc Date: Tue, 16 Oct 2012 00:37:44 -0500 Subject: [PATCH] Catching ValueError when trying to use ObjModel on binary stl files. --- mediagoblin/media_types/stl/model_loader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mediagoblin/media_types/stl/model_loader.py b/mediagoblin/media_types/stl/model_loader.py index 12a400e2..a417b04c 100644 --- a/mediagoblin/media_types/stl/model_loader.py +++ b/mediagoblin/media_types/stl/model_loader.py @@ -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 -- 2.25.1