replace logging.warn with warning

call is deprected in python 3.7

Fixes: https://pagure.io/koji/issue/2135
This commit is contained in:
Tomas Kopecek 2020-04-06 09:59:06 +02:00
parent ef0730f5d5
commit 0132313f92
13 changed files with 63 additions and 62 deletions

View file

@ -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: