From 67af4927395c241c6d59ff0223963f23541ebd51 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 12 Oct 2022 10:44:23 +0200 Subject: [PATCH] fix type check --- koji/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koji/tasks.py b/koji/tasks.py index 44bde10a..4f37113e 100644 --- a/koji/tasks.py +++ b/koji/tasks.py @@ -870,7 +870,7 @@ class WaitrepoTask(BaseTaskHandler): if isinstance(newer_than, six.string_types) and newer_than.lower() == "now": newer_than = start - if not isinstance(newer_than, list(six.integer_types) + [type(None), float]): + if not isinstance(newer_than, six.integer_types + (type(None), float)): raise koji.GenericError("Invalid value for newer_than: %s" % newer_than) if newer_than and nvrs: