Be more forgiving when checking available restore sets
This commit is contained in:
parent
440491425a
commit
d30cb309ca
1 changed files with 4 additions and 4 deletions
|
@ -49,13 +49,13 @@ internal class RestoreCoordinator(
|
||||||
val set = RestoreSet(metadata.deviceName, metadata.deviceName, metadata.token)
|
val set = RestoreSet(metadata.deviceName, metadata.deviceName, metadata.token)
|
||||||
restoreSets.add(set)
|
restoreSets.add(set)
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
Log.e(TAG, "Error while getting restore sets", e)
|
Log.e(TAG, "Error while getting restore set ${encryptedMetadata.token}", e)
|
||||||
return null
|
continue
|
||||||
} catch (e: SecurityException) {
|
} catch (e: SecurityException) {
|
||||||
Log.e(TAG, "Error while getting restore sets", e)
|
Log.e(TAG, "Error while getting restore set ${encryptedMetadata.token}", e)
|
||||||
return null
|
return null
|
||||||
} catch (e: DecryptionFailedException) {
|
} catch (e: DecryptionFailedException) {
|
||||||
Log.e(TAG, "Error while decrypting restore set", e)
|
Log.e(TAG, "Error while decrypting restore set ${encryptedMetadata.token}", e)
|
||||||
continue
|
continue
|
||||||
} catch (e: UnsupportedVersionException) {
|
} catch (e: UnsupportedVersionException) {
|
||||||
Log.w(TAG, "Backup with unsupported version read", e)
|
Log.w(TAG, "Backup with unsupported version read", e)
|
||||||
|
|
Loading…
Reference in a new issue