2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Catch TextParsingException (which wrapps SocketException)

Could happen if the download of the CSV file failed or got interrupted
This commit is contained in:
Albert Vaca Cintora
2023-07-08 00:00:06 +02:00
parent 1273cb641a
commit d9db7e4ad9

View File

@@ -16,6 +16,7 @@ import android.preference.PreferenceManager;
import android.provider.Settings;
import android.util.Log;
import com.univocity.parsers.common.TextParsingException;
import com.univocity.parsers.csv.CsvParser;
import com.univocity.parsers.csv.CsvParserSettings;
@@ -111,7 +112,7 @@ public class DeviceHelper {
Log.e("DeviceHelper", "Didn't find a device name for " + Build.MODEL);
}
}
} catch(IOException e) {
} catch(IOException | TextParsingException e) {
e.printStackTrace();
}
fetchingName = false;