mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
1a58c8676c
commit
05aed2d359
14 changed files with 68 additions and 54 deletions
|
|
@ -168,7 +168,7 @@ class PingThread(threading.Thread):
|
|||
else:
|
||||
babase.print_exception(
|
||||
f'Error on gather ping '
|
||||
f'(errno={exc.errno})', once=True)
|
||||
f'(errno={exc.errno})', once = True)
|
||||
except Exception:
|
||||
babase.print_exception('Error on gather ping', once=True)
|
||||
finally:
|
||||
|
|
@ -1697,7 +1697,8 @@ def fetchAccountInfo(account, loading_widget):
|
|||
fdata = json.load(f)
|
||||
if account in fdata:
|
||||
servers = fdata[account]
|
||||
url = f'https://{BCSSERVER}/player?key={base64.b64encode(account.encode("utf-8")).decode("utf-8")}&base64=true'
|
||||
url = f'https: //{BCSSERVER}/player?key={base64.b64encode(
|
||||
account.encode("utf-8")).decode("utf-8")}&base64=true'
|
||||
req = urllib.request.Request(url, headers={
|
||||
"User-Agent": f'BS{_babase.env().get("build_number", 0)}', "Accept-Language": "en-US,en;q=0.9", })
|
||||
data = urllib.request.urlopen(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue