Update exception syntax in rmtree()

This commit is contained in:
Mike McLean 2016-12-19 12:30:56 -05:00
parent d4590637a1
commit ab99443414

View file

@ -286,7 +286,7 @@ def rmtree(path):
# see: https://pagure.io/koji/issue/201
st = os.lstat(path)
if not stat.S_ISDIR(st.st_mode):
raise koji.GenericError, "Not a directory: %s" % path
raise koji.GenericError("Not a directory: %s" % path)
dev = st.st_dev
cwd = os.getcwd()
try: