Fix lint v2

This commit is contained in:
pvizeli 2017-04-07 09:13:08 +02:00
parent 878eb40258
commit 1ad196424f

View File

@ -68,9 +68,9 @@ def api_return_error(message=None):
})
def api_return_ok(data=dict()):
def api_return_ok(data=None):
"""Return a API ok answer."""
return web.json_response({
JSON_RESULT: RESULT_OK,
JSON_DATA: data,
JSON_DATA: data or {},
})