Fix for requests being called before dependency test

That fixes an instant crash when the user have not installed the dependencies, by only calling it after the code makes sure it is installed

Signed-off-by: nanometer5088 <code.deleo@simplelogin.com>
This commit is contained in:
nanometer5088
2023-07-13 14:08:53 -03:00
parent a9fa31a29c
commit 84b19d1c89

View File

@@ -13,8 +13,6 @@ import os
import platform
import sys
import requests
from log import logtofile as log
@@ -56,6 +54,9 @@ def init(silent):
log("Operating System and Python detection finished\n")
log("Started update / networking test")
import requests
try:
link = requests.get(
"https://raw.githubusercontent.com/nanometer5088/CLI-TikTok/main/src/constants.py"