mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: remove bare except
Bare except should not be used. Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
This commit is contained in:
@@ -120,10 +120,10 @@ def get_fqdn():
|
||||
fqdn = ""
|
||||
try:
|
||||
fqdn = socket.getfqdn()
|
||||
except:
|
||||
except Exception:
|
||||
try:
|
||||
fqdn = socket.gethostname()
|
||||
except:
|
||||
except Exception:
|
||||
fqdn = ""
|
||||
return fqdn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user