slightly better errors on signal
This commit is contained in:
parent
92cf12905b
commit
8a98d81801
1 changed files with 6 additions and 3 deletions
|
@ -23,9 +23,12 @@ def main():
|
||||||
func = getattr(mod, func)
|
func = getattr(mod, func)
|
||||||
|
|
||||||
for doc in docs:
|
for doc in docs:
|
||||||
func(doc, kernel.get_last_version(doc))
|
try:
|
||||||
# make optional?
|
func(doc, kernel.get_last_version(doc))
|
||||||
kernel.db.tracked.save(doc, safe=True)
|
# make optional?
|
||||||
|
kernel.db.tracked.save(doc, safe=True)
|
||||||
|
except Exception as e:
|
||||||
|
print 'Error while processing %s: %s' % (doc, e)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue