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:
Martin Basti
2016-03-11 19:51:07 +01:00
parent aa74995736
commit 491447cc5a
25 changed files with 51 additions and 57 deletions

View File

@@ -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