forked from openlp/openlp
Supposedly fix for #354 in support.openlp.org, a traceback when JSON response from remote cannot be decoded.
This commit is contained in:
parent
5f6962f4c7
commit
2508e71a44
@ -332,7 +332,12 @@ class HttpConnection(object):
|
|||||||
args = []
|
args = []
|
||||||
for param in match.groups():
|
for param in match.groups():
|
||||||
args.append(param)
|
args.append(param)
|
||||||
|
try:
|
||||||
response = func(*args)
|
response = func(*args)
|
||||||
|
except ValueError as error:
|
||||||
|
log.exception(u'Error while decoding JSON message '
|
||||||
|
'from remote browser.')
|
||||||
|
return False
|
||||||
break
|
break
|
||||||
if response:
|
if response:
|
||||||
self.send_response(response)
|
self.send_response(response)
|
||||||
|
Loading…
Reference in New Issue
Block a user