Catching ValueError when trying to use ObjModel on binary stl files.

This commit is contained in:
Aeva Ntsc 2012-10-16 00:37:44 -05:00 committed by Christopher Allan Webber
parent 8f496712d0
commit ecee8d62c1

View 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