From 352c4038d3504b5104c4e3e422a4ef264a00e631 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Wed, 26 Jun 2024 14:00:11 +0530 Subject: [PATCH] Improved the exception handling. --- .../java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt index c06be8285c..71f3e5d3b4 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt @@ -49,7 +49,6 @@ import java.io.InputStream import java.io.OutputStream import java.io.PipedInputStream import java.io.PipedOutputStream -import java.lang.reflect.InvocationTargetException import java.net.URLDecoder import javax.inject.Inject @@ -278,7 +277,7 @@ class ZimFileReader constructor( } val infoPair = try { article?.directAccessInformation - } catch (ignore: InvocationTargetException) { + } catch (ignore: Exception) { Log.e( TAG, "Could not get directAccessInformation for uri = $uri \n" +