Skip to content

Commit

Permalink
Protect from MemoryError occuring when parsing large documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Arduous committed Aug 31, 2018
1 parent f2dd3cf commit dc80bbd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions noisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,10 @@ def crawl(self):
except LocationParseError:
logging.warn("Error encountered during parsing of: {}".format(url))

except LocationParseError:
logging.warn("Error encountered during parsing of: {}".format(url))

except self.CrawlerTimedOut:
logging.info("Timeout has exceeded, exiting")
return

logging.debug("No more links were found")


def main():
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit dc80bbd

Please sign in to comment.