diff --git a/backend/copr_backend/createrepo.py b/backend/copr_backend/createrepo.py index 9a6f405e8..0fdc49a41 100644 --- a/backend/copr_backend/createrepo.py +++ b/backend/copr_backend/createrepo.py @@ -152,7 +152,12 @@ def options(self): self.log.info("Key %s already processed, skip", key) continue - task_opts = json.loads(task_dict["task"]) + try: + task_opts = json.loads(task_dict["task"]) + except KeyError: + self.log.info("KeyError exception. Task dictionary for key %s: %s", + key, task_dict) + raise skip = False for attr in ["devel", "appstream"]: