Skip to content

Commit a2809cd

Browse files
committed
Fix crash when server is not available
1 parent 1a24eff commit a2809cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/klee/sapio/data/RetrofitClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ class EvaluationService @Inject constructor(
159159
settings.getRootConfigurationLevel(),
160160
pageNumber
161161
).await()
162-
} catch (_: IOException) {}
162+
} catch (exception: Exception) {
163+
exception.printStackTrace()
164+
}
163165

164166
return strapiAnswer
165167
}

0 commit comments

Comments
 (0)