Browse Source

Fix #34.

Add:
    bitshift/crawler/indexer.py
        -Add a `try-except` block to catch the `UnsupportedFileError` exception.
tags/v1.0^2
Severyn Kozak 10 years ago
parent
commit
94953624c8
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      bitshift/crawler/indexer.py

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

@@ -162,8 +162,11 @@ class GitIndexer(threading.Thread):
commits_meta[filename]["time_created"], commits_meta[filename]["time_created"],
commits_meta[filename]["time_last_modified"], commits_meta[filename]["time_last_modified"],
repo.rank) repo.rank)
parse(codelet)
self.database.insert(codelet)
try:
parse(codelet)
self.database.insert(codelet)
except UnsupportedFileError as excep:
pass


def _generate_file_url(self, filename, repo_url, framework_name): def _generate_file_url(self, filename, repo_url, framework_name):
""" """


Loading…
Cancel
Save