aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
diff options
context:
space:
mode:
authorAeva Ntsc <aeva.ntsc@gmail.com>2012-10-16 00:37:44 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-12-03 14:40:48 -0600
commitecee8d62c16b7f32b44b50ea4af18c94cecdd998 (patch)
tree947c395e71d5a7e59d8ff9910e1321a9e9eaf19c /mediagoblin
parent8f496712d04387af1eb9d0127d309c4179da2b10 (diff)
downloadmediagoblin-ecee8d62c16b7f32b44b50ea4af18c94cecdd998.tar.lz
mediagoblin-ecee8d62c16b7f32b44b50ea4af18c94cecdd998.tar.xz
mediagoblin-ecee8d62c16b7f32b44b50ea4af18c94cecdd998.zip
Catching ValueError when trying to use ObjModel on binary stl files.
Diffstat (limited to 'mediagoblin')
-rw-r--r--mediagoblin/media_types/stl/model_loader.py2
1 files changed, 2 insertions, 0 deletions
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