dataimport.py
branchstable
changeset 7214 70538ea2532d
parent 7201 52f5831400b2
child 7227 23d9c1f89c96
--- a/dataimport.py	Wed Apr 13 08:38:24 2011 +0200
+++ b/dataimport.py	Wed Apr 13 09:46:29 2011 +0200
@@ -581,7 +581,7 @@
                     self.tell(pformat(sorted(error[1])))
 
     def _print_stats(self):
-        nberrors = sum(len(err[1]) for err in self.errors.values())
+        nberrors = sum(len(err) for err in self.errors.values())
         self.tell('\nImport statistics: %i entities, %i types, %i relations and %i errors'
                   % (self.store.nb_inserted_entities,
                      self.store.nb_inserted_types,