[migration] Fix dumb error in 0.11 migration
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 06 Dec 2017 10:22:46 +0100
changeset 2887 1a8d43a9547b
parent 2886 09d4339eaab2
child 2888 ad663bcecf88
[migration] Fix dumb error in 0.11 migration duh.
cubicweb_seda/migration/0.11.0_Any.py
--- a/cubicweb_seda/migration/0.11.0_Any.py	Wed Dec 06 09:28:52 2017 +0100
+++ b/cubicweb_seda/migration/0.11.0_Any.py	Wed Dec 06 10:22:46 2017 +0100
@@ -6,8 +6,9 @@
 # uri. Should be done there but still easier here.
 try:
     from cubicweb_saem_ref.site_cubicweb import init_seda_scheme
+    init_seda_scheme.func_defaults[0][0] = len(LCSV_FILES) - 1
 except ImportError:
-    init_seda_scheme.func_defaults[0][0] = len(LCSV_FILES) - 1
+    pass
 
 print('filtering language concepts, this will take a while')