projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
398d384
)
Fixed a bug that had binary stls be handled by the ascii stl parser.
author
Aeva Ntsc
<aeva.ntsc@gmail.com>
Sun, 24 Mar 2013 21:12:55 +0000
(16:12 -0500)
committer
Aeva Ntsc
<aeva.ntsc@gmail.com>
Sun, 24 Mar 2013 21:12:55 +0000
(16:12 -0500)
mediagoblin/media_types/stl/model_loader.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/media_types/stl/model_loader.py
b/mediagoblin/media_types/stl/model_loader.py
index 60fa4851567eae5c62f95e0ae9c28a84b2a7bf81..528c82fa7885683d13ddc3acf1feeb6216b5da9e 100644
(file)
--- 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