mirror of
https://github.com/ovosimpatico/CLI-TikTok.git
synced 2026-01-15 11:52:52 -03:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user