cacth all exceptions in MensaParser
there are many things that can go wrong
This commit is contained in:
@ -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