fix: exception reporting on failing in getting ip

This commit is contained in:
Hiddify
2024-02-22 10:05:15 +01:00
parent 59ca9ff475
commit 62c5e55317
2 changed files with 10 additions and 2 deletions

View File

@@ -130,9 +130,11 @@ class IntroPage extends HookConsumerWidget with PresLogger {
await ref
.read(localePreferencesProvider.notifier)
.changeLocale(regionLocale.locale);
return;
} catch (e) {
loggy.warning('Could not get the local country code based on timezone');
}
try {
final response = await http.get(Uri.parse('https://api.ip.sb/json/'));