Fix error message for RuStore when no APK found (#2615)

This commit is contained in:
Imran Remtulla
2025-11-08 16:29:56 -05:00
parent 44950032f7
commit 006c39f1d0

View File

@@ -86,7 +86,11 @@ class RuStore extends AppSource {
postBody: {"appId": appDetails['appId'], "firstInstall": true},
);
var downloadDetails = (await decodeJsonBody(res1.bodyBytes))['body'];
if (res1.statusCode != 200 || downloadDetails['downloadUrls'][0]['url'] == null) {
try {
if (res1.statusCode != 200 || downloadDetails['downloadUrls'][0]['url'] == null) {
throw NoAPKError();
}
} catch (e) {
throw NoAPKError();
}