Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Allow tls flag to be set in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmello committed Aug 8, 2022
1 parent ce07b92 commit 330c82e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
connected = False
while connected == False:
try:
api = cript.API(config.get("host"), config.get("token"))
api = cript.API(
config.get("host"), config.get("token"), tls=config.get("tls", True)
)
connected = True
except (cript.exceptions.APIAuthError, requests.exceptions.RequestException) as e:
print(f"~ API connection failed. Try again.\n")
Expand Down

0 comments on commit 330c82e

Please sign in to comment.