Skip to content
Snippets Groups Projects
Verified Commit eefc89f8 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

avoid attribute error on user_config

parent 0dd8f726
No related branches found
No related tags found
1 merge request!196Avoid attribute error on user_config
Pipeline #79429 passed
This commit is part of merge request !196. Comments created here will be created in the context of that merge request.
......@@ -210,7 +210,7 @@ class BaseWorker(object):
self.secrets = {name: self.load_secret(name) for name in required_secrets}
# Load worker run configuration when available
worker_configuration = worker_run.get("configuration")
worker_configuration = worker_run.get("configuration", {})
self.user_configuration = worker_configuration.get("configuration")
if self.user_configuration:
logger.info("Loaded user configuration from WorkerRun")
......
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