Skip to content
Snippets Groups Projects
Commit f55bd3f9 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

bump dep on syweb 0.6.5

parent bbb010a3
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ logger = logging.getLogger(__name__) ...@@ -5,7 +5,7 @@ logger = logging.getLogger(__name__)
REQUIREMENTS = { REQUIREMENTS = {
"syutil>=0.0.3": ["syutil"], "syutil>=0.0.3": ["syutil"],
"matrix_angular_sdk>=0.6.4": ["syweb>=0.6.4"], "matrix_angular_sdk>=0.6.5": ["syweb>=0.6.5"],
"Twisted==14.0.2": ["twisted==14.0.2"], "Twisted==14.0.2": ["twisted==14.0.2"],
"service_identity>=1.0.0": ["service_identity>=1.0.0"], "service_identity>=1.0.0": ["service_identity>=1.0.0"],
"pyopenssl>=0.14": ["OpenSSL>=0.14"], "pyopenssl>=0.14": ["OpenSSL>=0.14"],
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2015 OpenMarket Ltd # Copyright 2015 OpenMarket Ltd
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
...@@ -89,7 +89,8 @@ def _parse_json(request): ...@@ -89,7 +89,8 @@ def _parse_json(request):
if type(content) != dict: if type(content) != dict:
raise SynapseError(400, "Content must be a JSON object.") raise SynapseError(400, "Content must be a JSON object.")
return content return content
except ValueError: except ValueError as e:
logger.warn(e)
raise SynapseError(400, "Content not JSON.") raise SynapseError(400, "Content not JSON.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment