lib: Deprecate koji.listFaults

Related: https://pagure.io/koji/issue/3071
This commit is contained in:
Tomas Kopecek 2021-10-20 15:41:28 +02:00 committed by Yu Ming Zhu
parent 6f89e387a8
commit 9e6be3f977

View file

@ -472,6 +472,7 @@ def listFaults():
name: the name of the exception
desc: the description of the exception (docstring)
"""
util.deprecated("method listFaults is deprecated and will be removed in 1.29")
ret = []
for n, v in globals().items():
if isinstance(v, type(Exception)) and issubclass(v, GenericError):