aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAeva Ntsc <aeva.ntsc@gmail.com>2013-03-24 16:12:55 -0500
committerAeva Ntsc <aeva.ntsc@gmail.com>2013-03-24 16:12:55 -0500
commiteacb9c4886c0ef29885bbb68dc6b9580084beb59 (patch)
tree76307abdb8c9fc61d8cfe68887e7c6b29c71290b
parent398d384137bce928592dd63c210126ab989ee69c (diff)
downloadmediagoblin-eacb9c4886c0ef29885bbb68dc6b9580084beb59.tar.lz
mediagoblin-eacb9c4886c0ef29885bbb68dc6b9580084beb59.tar.xz
mediagoblin-eacb9c4886c0ef29885bbb68dc6b9580084beb59.zip
Fixed a bug that had binary stls be handled by the ascii stl parser.
-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 60fa4851..528c82fa 100644
--- a/mediagoblin/media_types/stl/model_loader.py
+++ b/mediagoblin/media_types/stl/model_loader.py
@@ -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