Projet

Général

Profil

0001-admin-blocks-use-msg-and-details-import-error-attrib.patch

Thomas Noël, 02 juillet 2020 10:14

Télécharger (864 octets)

Voir les différences:

Subject: [PATCH] admin/blocks: use msg and details import error attributes
 (#44722)

 wcs/admin/blocks.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
wcs/admin/blocks.py
227 227
            blockdef = BlockDef.import_from_xml(fp)
228 228
        except BlockdefImportError as e:
229 229
            error = True
230
            reason = _(e) % e.msg_args
230
            reason = _(e.msg)
231
            if e.details:
232
                reason += ' [%s]' % e.details
231 233
        except ValueError:
232 234
            error = True
233 235

  
234
-