Skip to content
Snippets Groups Projects
Commit 9a73d0c8 authored by Manon Blanco's avatar Manon Blanco Committed by Yoann Schneider
Browse files

Do not `get` value if there are always set

parent c194cc25
No related branches found
No related tags found
1 merge request!500Store model_version details regardless of model version configuration
......@@ -269,10 +269,10 @@ class BaseWorker:
self.model_configuration.update(model_version.get("configuration", {}))
# Set model_version ID as worker attribute
self.model_version_id = model_version.get("id")
self.model_version_id = model_version["id"]
# Set model details as worker attribute
self.model_details = model_version.get("model", {})
self.model_details = model_version["model"]
# Retrieve initial configuration from API
self.config = worker_version["configuration"].get("configuration", {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment