mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-29 05:41:04 +00:00
fix: Handle exceptions on APIs in a more legible way
This commit is contained in:
@@ -38,7 +38,7 @@ class RevancedAPI {
|
||||
contributors[name] = repo['contributors'];
|
||||
}
|
||||
} on Exception {
|
||||
// ignore
|
||||
return {};
|
||||
}
|
||||
return contributors;
|
||||
}
|
||||
@@ -49,9 +49,8 @@ class RevancedAPI {
|
||||
List<dynamic> patches = response.data;
|
||||
return patches.map((patch) => Patch.fromJson(patch)).toList();
|
||||
} on Exception {
|
||||
// ignore
|
||||
return List.empty();
|
||||
}
|
||||
return List.empty();
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>?> _getLatestRelease(
|
||||
|
||||
Reference in New Issue
Block a user