From 034dfe305973a0f2e7deb0c9776605664ea9b169 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 20 Apr 2019 14:49:04 +0200 Subject: Fixed many minor things regarding stability Co-authored-by: LarsVomMars --- src/main/kotlin/DatabaseController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/DatabaseController.kt') diff --git a/src/main/kotlin/DatabaseController.kt b/src/main/kotlin/DatabaseController.kt index 888171c..b3fac60 100644 --- a/src/main/kotlin/DatabaseController.kt +++ b/src/main/kotlin/DatabaseController.kt @@ -274,7 +274,7 @@ class DatabaseController(dbFileLocation: String = "main.db") { ReturnFileData(userId, fileLocation, isDir) } else ReturnFileData(-1, "", false) - } catch (_: org.jetbrains.exposed.exceptions.ExposedSQLException) { + } catch (_: Exception) { log.warning("File does not exist!") ReturnFileData(-1, "", false) } @@ -373,4 +373,4 @@ data class ReturnFileData( val userId: Int, val fileLocation: String, val isDirectory: Boolean -) // TODO: Think about using dataclass +) -- cgit v1.2.3