File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
WordPress/src/main/java/org/wordpress/android/support/he/ui Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,7 @@ class HESupportViewModel @Inject constructor(
156156
157157 @Suppress(" TooGenericExceptionCaught" )
158158 private suspend fun copyUrisToTempFiles (uris : List <Uri >): List <File > = withContext(ioDispatcher) {
159- try {
160- uris.mapNotNull { it.toTempFile() }
161- } catch (e: Exception ) {
162- appLogWrapper.e(AppLog .T .SUPPORT , " Error copying URIs to temp files: ${e.stackTraceToString()} " )
163- emptyList()
164- }
159+ uris.mapNotNull { it.toTempFile() }
165160 }
166161
167162 @Suppress(" TooGenericExceptionCaught" )
@@ -193,7 +188,7 @@ class HESupportViewModel @Inject constructor(
193188 tempFile
194189 } catch (e: Exception ) {
195190 appLogWrapper.e(AppLog .T .SUPPORT , " Error copying URI to temp file: ${e.stackTraceToString()} " )
196- null
191+ throw e
197192 }
198193 }
199194}
You can’t perform that action at this time.
0 commit comments