mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: cast result to str
Some checks are pending
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
Some checks are pending
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
This commit is contained in:
parent
8652259053
commit
6a3b4b2bfb
@ -405,7 +405,7 @@ def get_app_name(appid: int) -> str:
|
||||
if res.status_code != 200:
|
||||
return unknown
|
||||
try:
|
||||
return res.json()[str(appid)]["data"]["name"]
|
||||
return str(res.json()[str(appid)]["data"]["name"])
|
||||
except Exception as e:
|
||||
logger.debug(e)
|
||||
return unknown
|
||||
|
||||
Loading…
Reference in New Issue
Block a user