Skip to content

Commit 406f2ee

Browse files
authored
Merge pull request #49 from TongchengOpenSource/fix-versionNull
🐛 修复version不存在导致的panic
2 parents 8bf44d0 + e682c8f commit 406f2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/routers/frida/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def getApps():
4848
{
4949
"name": i.name,
5050
"package": i.identifier,
51-
"version": i.parameters["version"],
51+
"version": i.parameters.get("version", "-"),
5252
"icon": i.parameters["icons"][0]["image"],
5353
}
5454
)
@@ -57,7 +57,7 @@ async def getApps():
5757
{
5858
"name": i.name,
5959
"package": i.identifier,
60-
"version": i.parameters["version"],
60+
"version": i.parameters.get("version", "-"),
6161
"icon": "",
6262
}
6363
)

0 commit comments

Comments
 (0)