Flush early to get errors ASAP
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 19 Oct 2016 15:53:28 +0200
changeset 1890 1019e4f3227c
parent 1889 0441a4cbec7e
child 1891 49d118aa8254
Flush early to get errors ASAP
dataimport.py
--- a/dataimport.py	Wed Oct 19 15:53:12 2016 +0200
+++ b/dataimport.py	Wed Oct 19 15:53:28 2016 +0200
@@ -145,6 +145,6 @@
             for etype in etypes:
                 etype_e = cnx.find('CWEType', name=etype).one()
                 scheme.cw_set(scheme_entity_type=etype_e)
-    store.flush()
+            store.flush()
     store.commit()
     store.finish()