From 8363f2b0f4da75954dfc7f9070363f638f64d50a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 13 Jun 2014 14:19:31 -0400 Subject: [PATCH] Generic try/catch directly around parse() for parser errors. --- bitshift/crawler/indexer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitshift/crawler/indexer.py b/bitshift/crawler/indexer.py index cbbf5d4..df6bc24 100644 --- a/bitshift/crawler/indexer.py +++ b/bitshift/crawler/indexer.py @@ -168,6 +168,8 @@ class GitIndexer(threading.Thread): parse(codelet) except UnsupportedFileError: continue + except Exception: + self._logger.exception("Exception raised while parsing:") self.database.insert(codelet) def _generate_file_url(self, filename, repo):