[PATCH 3 of 3 saem_ref] [c-c] Fix encoding error on displaying error in eac-import command

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 22 10:57:28 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490106914 -3600
#      Tue Mar 21 15:35:14 2017 +0100
# Node ID fff3daf3672daeade407c6478cc3e966adca2138
# Parent  dd9ff0df5d055d5d2d62669b7595ea4e89c8cef7
[c-c] Fix encoding error on displaying error in eac-import command

diff --git a/cubicweb_saem_ref/ccplugin.py b/cubicweb_saem_ref/ccplugin.py
--- a/cubicweb_saem_ref/ccplugin.py
+++ b/cubicweb_saem_ref/ccplugin.py
@@ -66,11 +66,11 @@ def run(self, args):
                 try:
                     org = org_rset.one()
                 except MultipleResultsError:
                     print('ERROR: there are several authorities, choose the one to use using '
                           '--authority option. It should be one of {}'.format(
-                              u','.join(_enc(org.name) for org in org_rset.entities())))
+                              ', '.join(_enc(org.name) for org in org_rset.entities())))
                     sys.exit(1)
             if not org.ark_naa:
                 print('ERROR: authority {} is not associated to a ARK naming authority. Choose '
                       'another organization or associate it to a ARK naming authority first.'
                       .format(_enc(org.name)))


More information about the saem-devel mailing list