From 28ba9f45f684cb2b66c43b4faba7d7da97c48748 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Sep 13 2024 15:39:51 +0000 Subject: allow None in repoInfo for backwards compat --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 4055e37..28d4c74 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -3021,7 +3021,7 @@ def repo_info(repo_id, strict=False): :returns: dict (id, state, create_event, creation_time, tag_id, tag_name, dist) """ - repo_id = convert_value(repo_id, cast=int) + repo_id = convert_value(repo_id, cast=int, none_allowed=True) clauses = [['id', '=', repo_id]] return repos.RepoQuery(clauses, fields='**').executeOne(strict=strict)