feat(novelpia): handle rate limit

This commit is contained in:
Ryu juheon 2022-05-03 00:18:33 +09:00
parent 9b6fd24f88
commit 1c89435723
No known key found for this signature in database
GPG Key ID: 9752D2FDA6C3B320
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class NovelpiaParser:
self.proc_episode_list_url,
data={"novel_no": self.number, "page": page},
)
if not r.text:
raise Exception("Rate limit")
return r.text
def get_total_episode_list(self) -> Tuple[int, str]: