[NudeMoon] use AuthRequiredException if no pages found

pull/6/head
Koitharu 4 years ago
parent 0ee689cd2f
commit 8e23a7fcd4
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -208,7 +208,11 @@ internal class NudeMoonParser(
} }
return result return result
} }
if (isAuthorized) {
parseFailed("Cannot find pages list") parseFailed("Cannot find pages list")
} else {
throw AuthRequiredException(source)
}
} }
private fun getSortKey(sortOrder: SortOrder?) = private fun getSortKey(sortOrder: SortOrder?) =

Loading…
Cancel
Save