diff --git a/bot/__init__.py b/bot/__init__.py index 71835dd97..9119d04bb 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -14,7 +14,7 @@ info, warning, ) -from os import environ, remove, getcwd +from os import environ, getcwd, remove from os import path as ospath from shutil import rmtree from socket import setdefaulttimeout @@ -486,7 +486,9 @@ def format(self, record: LogRecord) -> str: if ospath.exists("accounts.zip"): if ospath.exists("accounts"): rmtree("accounts") - subprocess.run(["7z", "x", "-o.", "-aoa", "accounts.zip", "accounts/*.json"], check=False) + subprocess.run( + ["7z", "x", "-o.", "-aoa", "accounts.zip", "accounts/*.json"], check=False + ) subprocess.run(["chmod", "-R", "777", "accounts"], check=False) remove("accounts.zip") if not ospath.exists("accounts"): @@ -533,6 +535,7 @@ def format(self, record: LogRecord) -> str: a2c_glo = {op: aria2_options[op] for op in aria2c_global if op in aria2_options} aria2.set_global_options(a2c_glo) + def get_qb_options(): global qbit_options if not qbit_options: