Skip to content

Commit 0485c69

Browse files
authored
Merge pull request #57 from brandoncasaba/master
Fix cert code to read from args correctly
2 parents b967cdd + e5187ee commit 0485c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htpclient/initialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ def __check_token(self, args):
188188

189189
def __check_cert(self, args):
190190
cert = self.config.get_value('cert')
191-
if cert is None:
191+
if not cert:
192192
if args.cert is not None:
193193
cert = os.path.abspath(args.cert)
194194
logging.debug("Setting cert to: " + cert)
195195
self.config.set_value('cert', cert)
196196

197-
if cert is not None:
197+
if cert:
198198
Session().s.cert = cert
199199
logging.debug("Configuration session cert to: " + cert)
200200

0 commit comments

Comments
 (0)