[NudeMoon] use AuthRequiredException if no pages found

This commit is contained in:
2022-04-11 11:36:49 +03:00
parent 0ee689cd2f
commit 8e23a7fcd4

View File

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