Skip to content
Snippets Groups Projects
Commit b85d8625 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

adds correct error handling to logging of API requests

parent 8c0d7789
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,8 @@ class OdshApiController(ApiController):
try:
request_data = self._get_request_data(try_url_params=False)
log.info('POST request body: {}'.format(json.dumps(json.loads(request_data))))
except:
pass
Exception, e:
log.error(e)
if logic_function == 'resource_qv4yAI2rgotamXGk98gJ':
return helpers.odsh_get_version_id()
if logic_function == 'resourcelog_qv4yAI2rgotamXGk98gJ':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment