From cf59d99676ca12b6ec3fda8435e30995afa91fb1 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 6 Mar 2021 17:37:13 +0100 Subject: [PATCH] enable verify cert if no proxy --- otp/Otp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otp/Otp.py b/otp/Otp.py index 8a81db4..ebf67b9 100644 --- a/otp/Otp.py +++ b/otp/Otp.py @@ -154,7 +154,7 @@ class Otp: }, params=param, proxies=proxies, - verify=False + verify=proxies is None ).text try: raw_xml = raw_xml[raw_xml.index("?>") + 2:]