fix: Skip non existing feeds in bambenekconsulting list

pull/12/head
Raphaël Vinot 2018-11-26 10:35:22 +01:00
parent 4afd45356d
commit 89796618a0
1 changed files with 3 additions and 0 deletions

View File

@ -9,5 +9,8 @@ from typing import List
def parse_raw_file(self, f: BytesIO) -> List[bytes]: def parse_raw_file(self, f: BytesIO) -> List[bytes]:
if re.findall(b'This feed is not generated for this family', f.getvalue()):
return []
self.datetime = parse(re.findall(b'## Feed generated at: (.*)\n', f.getvalue())[0]) self.datetime = parse(re.findall(b'## Feed generated at: (.*)\n', f.getvalue())[0])
return self.extract_ipv4(f.getvalue()) return self.extract_ipv4(f.getvalue())