Skip to content

Commit e789d1e

Browse files
committed
Catch all types of exception in backup restore process
1 parent 7ed1bae commit e789d1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/drdisagree/colorblendr/utils/BackupRestore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ object BackupRestore {
8686
tempZipFile.delete()
8787

8888
true
89-
} catch (e: IOException) {
89+
} catch (e: Exception) {
9090
Log.e(TAG, "Error during backup", e)
9191
false
9292
}
@@ -161,7 +161,7 @@ object BackupRestore {
161161
}
162162

163163
true
164-
} catch (e: IOException) {
164+
} catch (e: Exception) {
165165
Log.e(TAG, "Error during restore", e)
166166
false
167167
}

0 commit comments

Comments
 (0)