mirror of
https://github.com/ansible/awx.git
synced 2026-07-27 16:09:55 -02:30
Converted except T,e expressions to except T as e
This commit is contained in:
@@ -59,7 +59,7 @@ class FactCacheReceiver(object):
|
||||
except Fact.MultipleObjectsReturned:
|
||||
logger.warn('Database inconsistent. Multiple Hosts found for <hostname, inventory_id> <%s, %s>.' % (hostname, inventory_id))
|
||||
return None
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.error("Exception communicating with Fact Cache Database: %s" % str(e))
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user