mirror of
https://github.com/ansible/awx.git
synced 2026-08-06 13:00:05 -02:30
Modernize Python 2 code to get ready for Python 3
This commit is contained in:
@@ -577,5 +577,5 @@ def delete_inventory_for_org(sender, instance, **kwargs):
|
||||
for inventory in inventories:
|
||||
try:
|
||||
inventory.schedule_deletion(user_id=getattr(user, 'id', None))
|
||||
except RuntimeError, e:
|
||||
except RuntimeError as e:
|
||||
logger.debug(e)
|
||||
|
||||
Reference in New Issue
Block a user