diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py b/frontend/coprs_frontend/coprs/logic/builds_logic.py index 99f6a6eea..bfb6a7d24 100644 --- a/frontend/coprs_frontend/coprs/logic/builds_logic.py +++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py @@ -1034,11 +1034,12 @@ def finish(chroot, status): for chroot in build.build_chroots: arch = chroot.mock_chroot.arch - exclusivearch = upd_dict["results"]["exclusivearch"] + exclusivearch = upd_dict["results"].get("exclusivearch") if exclusivearch and arch not in exclusivearch: finish(chroot, StatusEnum("skipped")) - if arch in upd_dict["results"]["excludearch"]: + excludearch = upd_dict["results"].get("excludearch") + if arch in excludearch: finish(chroot, StatusEnum("skipped")) cls.process_update_callback(build)