0

Don't print scary traceback when textures cannot be found

See #860
This commit is contained in:
Andrew Chin
2013-01-01 21:08:59 -05:00
parent 4222b9f3c2
commit 64cdd057fd
2 changed files with 10 additions and 1 deletions

View File

@@ -503,6 +503,10 @@ if __name__ == "__main__":
try:
ret = main()
util.nice_exit(ret)
except textures.TextureException, e:
# this isn't a "bug", so don't print scary traceback
logging.error(str(e))
util.nice_exit(1)
except Exception, e:
logging.exception("""An error has occurred. This may be a bug. Please let us know!
See http://docs.overviewer.org/en/latest/index.html#help