replace logging.warn with warning
call is deprected in python 3.7 Fixes: https://pagure.io/koji/issue/2135
This commit is contained in:
parent
ef0730f5d5
commit
0132313f92
13 changed files with 63 additions and 62 deletions
|
|
@ -328,7 +328,7 @@ class RunRootTask(koji.tasks.BaseTaskHandler):
|
|||
failed.append("%s: %s" % (dir, output))
|
||||
if failed:
|
||||
msg = "Unable to unmount: %s" % ', '.join(failed)
|
||||
self.logger.warn(msg)
|
||||
self.logger.warning(msg)
|
||||
if fatal:
|
||||
raise koji.GenericError(msg)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue