Commit 6e7cdd3a authored by Denis Bilenko's avatar Denis Bilenko

parse_results.py: report number of parsing errors

parent af16c65c
......@@ -119,7 +119,11 @@ def main(db, options):
c.commit()
count += 1
finally:
print '%s rows updated' % count
msg = '%s: %s row%s updated' % (db, count, 's' if count!=1 else '')
if parse_error:
msg += ', %s error%s' % (parse_error, 's' if parse_error!=1 else '')
print msg
return count
if __name__=='__main__':
import optparse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment