π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Log faceID issues
laurenspriemee603ba82e9d
diff --git a/mobile/lib/services/machine_learning/ml_result.dart b/mobile/lib/services/machine_learning/ml_result.dartindex e38b20097a..920cf1b83b 100644--- a/mobile/lib/services/machine_learning/ml_result.dart+++ b/mobile/lib/services/machine_learning/ml_result.dart@@ -148,11 +148,18 @@ class FaceResult {T getFileIdFromFaceId<T extends Object>(String faceId) {final String faceIdSplit = faceId.substring(0, faceId.indexOf('_'));- if (T == int) {- return int.parse(faceIdSplit) as T;- }- if (T == String) {- return faceIdSplit as T;+ try {+ if (T == int) {+ return int.parse(faceIdSplit) as T;+ }+ if (T == String) {+ return faceIdSplit as T;+ }+ } catch (e) {+ Logger("FaceID").severe(+ "Error parsing faceId: $faceId with type $T",+ e,+ );}throw ArgumentError("Unsupported type: $T");}