diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-connection | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection index eed348f431..ced24ee47b 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -299,7 +299,7 @@ def main(): except Exception as exc: # Only network_cli has update_play context, so missing this is # not fatal e.g. netconf - if isinstance(exc, ConnectionError) and getattr(exc, 'code') == -32601: + if isinstance(exc, ConnectionError) and getattr(exc, 'code', None) == -32601: pass else: result.update({ |