cacth all exceptions in MensaParser
there are many things that can go wrong
This commit is contained in:
@ -50,7 +50,7 @@ class APIController {
|
||||
var logger: Logger = LoggerFactory.getLogger(APIController::class.java)
|
||||
private var requestCount = 0
|
||||
private val startTime = System.currentTimeMillis() / 1000
|
||||
private val softwareVersion = "1.1.0"
|
||||
private val softwareVersion = "1.1.1"
|
||||
private val apiVersion = "1.1.0"
|
||||
|
||||
// hso parser links (hardcoded)
|
||||
|
@ -50,6 +50,8 @@ class CourseListParser {
|
||||
}
|
||||
} catch (ex: SocketTimeoutException) {
|
||||
logger.warn("timeout from hs-offenburg.de, updating on next attempt!")
|
||||
} catch (gex: Exception) {
|
||||
logger.error("general CourseListParser error", gex)
|
||||
}
|
||||
|
||||
return courseLinkList
|
||||
|
@ -57,6 +57,8 @@ class MensaParser {
|
||||
}
|
||||
} catch (ex: SocketTimeoutException) {
|
||||
logger.warn("timeout from $menuLink, updating on next attempt!")
|
||||
} catch (gex: Exception) {
|
||||
logger.error("general MensaParser error", gex)
|
||||
}
|
||||
|
||||
return mealWeekList
|
||||
|
Reference in New Issue
Block a user