Browse Source

Generic try/catch directly around parse() for parser errors.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
8363f2b0f4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bitshift/crawler/indexer.py

+ 2
- 0
bitshift/crawler/indexer.py View File

@@ -168,6 +168,8 @@ class GitIndexer(threading.Thread):
parse(codelet) parse(codelet)
except UnsupportedFileError: except UnsupportedFileError:
continue continue
except Exception:
self._logger.exception("Exception raised while parsing:")
self.database.insert(codelet) self.database.insert(codelet)


def _generate_file_url(self, filename, repo): def _generate_file_url(self, filename, repo):


Loading…
Cancel
Save