diff --git a/src/Downloaders.py b/src/Downloaders.py index 72d1ff1..62727f0 100644 --- a/src/Downloaders.py +++ b/src/Downloaders.py @@ -7,6 +7,7 @@ import re import sys from bs4 import BeautifulSoup +import warnings from src.Chapters import * @@ -231,7 +232,7 @@ def parseOnlineChapterList(self, html) -> list: def parseTocResume(self, html=''): """ format and interpret the content of the home page of the novel """ - raise("parseTocResume method is not defined") + warnings.warn("This class doesn't have a method to parse the table of content's resume.") def processNovel(self): print("novel " + self.titre) @@ -437,10 +438,6 @@ def parseTitle(self, TocHTML): # '