[Grouple] Change getPageUrl exception

This commit is contained in:
2023-08-19 16:53:42 +03:00
parent 270890f841
commit e6839b1270

View File

@@ -215,7 +215,7 @@ internal abstract class GroupleParser(
}
} catch (e: NoSuchElementException) {
assert(false) { e.toString() }
candidates.random()
candidates.randomOrNull() ?: throw ParseException("No page url candidates", page.url, e)
}
}