Skip to content

Commit

Permalink
Auto-format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 9, 2024
1 parent 369c59e commit ce83e0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ce83e0b

Please sign in to comment.