diff --git a/htpclient/initialize.py b/htpclient/initialize.py index cd9e81c..ce9f394 100644 --- a/htpclient/initialize.py +++ b/htpclient/initialize.py @@ -188,13 +188,13 @@ def __check_token(self, args): def __check_cert(self, args): cert = self.config.get_value('cert') - if cert is None: + if not cert: if args.cert is not None: cert = os.path.abspath(args.cert) logging.debug("Setting cert to: " + cert) self.config.set_value('cert', cert) - if cert is not None: + if cert: Session().s.cert = cert logging.debug("Configuration session cert to: " + cert)