mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Fix up logger .warn() calls to use .warning() instead
This is a usage that was deprecated in Python 3.0.
This commit is contained in:
@@ -515,7 +515,7 @@ class JobNotificationMixin(object):
|
||||
try:
|
||||
notification_templates = self.get_notification_templates()
|
||||
except Exception:
|
||||
logger.warn("No notification template defined for emitting notification")
|
||||
logger.warning("No notification template defined for emitting notification")
|
||||
return
|
||||
|
||||
if not notification_templates:
|
||||
|
||||
Reference in New Issue
Block a user