|
a/Allura/allura/tasks/index_tasks.py |
|
b/Allura/allura/tasks/index_tasks.py |
|
... |
|
... |
25 |
g.solr.add([s])
|
25 |
g.solr.add([s])
|
26 |
if isinstance(artifact, M.Snapshot): continue
|
26 |
if isinstance(artifact, M.Snapshot): continue
|
27 |
ref.references = [
|
27 |
ref.references = [
|
28 |
link.ref_id for link in find_shortlinks(s['text']) ]
|
28 |
link.ref_id for link in find_shortlinks(s['text']) ]
|
29 |
except Exception:
|
29 |
except Exception:
|
|
|
30 |
log.error('Error indexing artifact %s', ref_id)
|
30 |
exceptions.append(sys.exc_info())
|
31 |
exceptions.append(sys.exc_info())
|
31 |
if exceptions:
|
32 |
if exceptions:
|
32 |
raise CompoundError(*exceptions)
|
33 |
raise CompoundError(*exceptions)
|
33 |
|
34 |
|
34 |
@task
|
35 |
@task
|