From b95eb94142207120bb9b9e865b12b66fc790468a Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 23 2019 08:37:50 +0000 Subject: check existence of tag_id in getInheritanceData Fixes: https://pagure.io/koji/issue/1460 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 4118ad2..2a8bf34 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -10134,9 +10134,7 @@ class RootExports(object): def getInheritanceData(self, tag, event=None): """Return inheritance data for tag""" - if not isinstance(tag, six.integer_types): - #lookup tag id - tag = get_tag_id(tag, strict=True) + tag = get_tag_id(tag, strict=True) return readInheritanceData(tag, event) def setInheritanceData(self, tag, data, clear=False):