0001-admin-blocks-use-msg-and-details-import-error-attrib.patch
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 |
- |