slightly better errors on signal
This commit is contained in:
parent
92cf12905b
commit
8a98d81801
@ -23,9 +23,12 @@ def main():
|
|||||||
func = getattr(mod, func)
|
func = getattr(mod, func)
|
||||||
|
|
||||||
for doc in docs:
|
for doc in docs:
|
||||||
|
try:
|
||||||
func(doc, kernel.get_last_version(doc))
|
func(doc, kernel.get_last_version(doc))
|
||||||
# make optional?
|
# make optional?
|
||||||
kernel.db.tracked.save(doc, safe=True)
|
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 New Issue
Block a user