# Consume, transparently decompress and decode the payload
f = self._consume_payload(response)
+ # Count parsed lines
+ lineno = 0
+
# Add all domains
for line in f:
+ lineno += 1
+
# Strip any comments
line, hashtag, comment = line.partition("#")
# Add the domain
domains.add(domain)
+ # If we downloaded no data, we skip any further processing
+ if lineno == 0:
+ log.warning("Downloaded an empty file from %s (%s). Skipping..." \
+ % (self, self.url))
+
+ return False
+
# Log an error if we could not detect the format
if format is None:
log.error("Format of '%s' (%s) seems to be unkown. No data could be parsed" \
% (self, self.url))
+ return False
+
# Add all domains to the database
self.add_domains(domains)