fix rest of int/long

This commit is contained in:
Tomas Kopecek 2018-05-16 10:29:59 +02:00 committed by Mike McLean
parent 220e889f2b
commit bc425033b5
2 changed files with 11 additions and 11 deletions

View file

@ -5660,7 +5660,7 @@ class WaitrepoTask(BaseTaskHandler):
if isinstance(newer_than, six.string_types) and newer_than.lower() == "now":
newer_than = start
if not isinstance(newer_than, (type(None), int, long, float)):
if not isinstance(newer_than, list(six.integer_types) + [type(None), float]):
raise koji.GenericError("Invalid value for newer_than: %s" % newer_than)
if newer_than and nvrs: