Private GIT

Skip to content
Snippets Groups Projects
Commit 17041718 authored by Dennis Lutter's avatar Dennis Lutter
Browse files

this fixes a issue where some images would not get returned this is due...

this fixes a issue where some images would not get returned this is due cherrypy throws a HTTPRedirect exception in some cases
parent ca23a89d
Branches
Tags
No related merge requests found
......@@ -104,6 +104,8 @@ class Api:
else:# if debug was not set we wrap the "call_dispatcher" in a try block to assure a json output
try:
outDict = _call_dispatcher(args, kwargs)
except cherrypy.HTTPRedirect: # seams like cherrypy uses exceptions for redirecting apparently this can happen when requesting images but it is ok so lets re raise it
raise
except Exception, e: # real internal error oohhh nooo :(
logger.log(u"API :: " + ex(e), logger.ERROR)
errorData = {"error_msg": ex(e),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment