Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions htpclient/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down