Skip to content

Commit

Permalink
backend: log task dict in case of error returned from redis
Browse files Browse the repository at this point in the history
so if cases like #2315
happens again, we can debug it and see what happenned
  • Loading branch information
nikromen authored and praiskup committed Jul 19, 2023
1 parent dd025d4 commit 7442ec4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/copr_backend/createrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 7442ec4

Please sign in to comment.