diff options
Diffstat (limited to 'client/ipa-client-install')
-rwxr-xr-x | client/ipa-client-install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install index 82e5c4cb0..884491eb0 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -2470,11 +2470,11 @@ def install(options, env, fstore, statestore): try: socket.inet_pton(socket.AF_INET, srv) is_ipaddr = True - except: + except socket.error: try: socket.inet_pton(socket.AF_INET6, srv) is_ipaddr = True - except: + except socket.error: is_ipaddr = False if is_ipaddr: |