Update exception syntax in rmtree()
This commit is contained in:
parent
d4590637a1
commit
ab99443414
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue