Commit 37856d66 authored by Hilal Ozdemir's avatar Hilal Ozdemir

return when error occurs

parent 80e4bcc2
......@@ -427,9 +427,10 @@ class ImageList(RPCEndpoint):
tag_or_digest, config_json_str, image_id)
await Services.docker_util.load_image(tarball_path) # type: ignore
except Exception as err:
except Exception as err: # pylint: disable=broad-except
rpc_endpoint.write('{"error":"%s"}]}' % str(err)) # type: ignore
rpc_endpoint.finish() # type: ignore
return
# # save repo_digest ?
# image = DockerImage.get().where(...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment