On désactive la sortie d'erreurs
This commit is contained in:
		@@ -19,6 +19,8 @@ class CExtractor(TwoStepsExtractor):
 | 
			
		||||
    def build_event_url_list(self, content):
 | 
			
		||||
        soup = BeautifulSoup(content, "html.parser")
 | 
			
		||||
 | 
			
		||||
        debug = False
 | 
			
		||||
 | 
			
		||||
        found = False
 | 
			
		||||
        links = soup.find_all("a")
 | 
			
		||||
        for link in links:
 | 
			
		||||
@@ -26,7 +28,7 @@ class CExtractor(TwoStepsExtractor):
 | 
			
		||||
                self.add_event_url(link.get('href').split('?')[0])
 | 
			
		||||
                found = True
 | 
			
		||||
 | 
			
		||||
        if not found:
 | 
			
		||||
        if not found and debug:
 | 
			
		||||
            directory = "errors/"
 | 
			
		||||
            if not os.path.exists(directory):
 | 
			
		||||
                os.makedirs(directory)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user