slightly better errors on signal

This commit is contained in:
James Turk 2012-04-10 17:48:01 -04:00
parent 92cf12905b
commit 8a98d81801

View File

@ -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()