Fix flake8

This commit is contained in:
Christian M. Adams
2020-10-22 15:44:55 -04:00
parent a5b644c23c
commit 44e9ba1117
5 changed files with 3 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ class Licenser(object):
def validate_rh(self, user, pw):
try:
host = 'https://' + str(self.config.get("server", "hostname"))
except:
except Exception:
logger.exception('Cannot access rhsm.conf, make sure subscription manager is installed and configured.')
host = None
if not host: