'JobConfig' object has no attribute 'type'
 - PR - https://github.com/packit-service/systemd-rhel8-flock/pull/9
 - sentry: https://sentry.io/organizations/red-hat-0p/issues/1450345291
diff --git a/packit_service/worker/github_handlers.py b/packit_service/worker/github_handlers.py
index 0eec6080..56c3b932 100644
--- a/packit_service/worker/github_handlers.py
+++ b/packit_service/worker/github_handlers.py
@@ -313,7 +313,7 @@ class GithubCoprBuildHandler(AbstractGithubJobHandler):
     def run(self) -> HandlerResults:
         is_copr_build: Callable[
             [JobConfig], bool
-        ] = lambda job: job.type == JobType.copr_build
+        ] = lambda job: job.job == JobType.copr_build
 
         if self.job.job == JobType.tests and any(
             filter(is_copr_build, self.package_config.jobs)
['packit_service/worker/github_handlers.py']