Added comment context to caught exception

This commit is contained in:
Akita Noek 2016-05-12 16:31:32 -04:00
parent acc49bbbef
commit 9d46a39e42

View File

@ -152,6 +152,8 @@ def _discover_credentials(instances, cred, orgfunc):
try:
_update_credential_parents(orgfunc(instances[0]), cred)
except AttributeError:
# JobTemplate.inventory can be NULL sometimes, eg when an inventory
# has been deleted. This protects against that.
pass
else:
for pos, org in enumerate(orgs):