瀏覽代碼

Fix #34.

Add:
    bitshift/crawler/indexer.py
        -Add a `try-except` block to catch the `UnsupportedFileError` exception.
tags/v1.0^2
Severyn Kozak 10 年之前
父節點
當前提交
94953624c8
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      bitshift/crawler/indexer.py

+ 5
- 2
bitshift/crawler/indexer.py 查看文件

@@ -162,8 +162,11 @@ class GitIndexer(threading.Thread):
commits_meta[filename]["time_created"],
commits_meta[filename]["time_last_modified"],
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):
"""


Loading…
取消
儲存