63 w_err(err.code, _(u'Error: %s') % err.msg) |
63 w_err(err.code, _(u'Error: %s') % err.msg) |
64 w_err(err.code, unicode(err.msg, ENCODING, 'replace')) |
64 w_err(err.code, unicode(err.msg, ENCODING, 'replace')) |
65 except (BadOptionError, ConfigValueError), err: |
65 except (BadOptionError, ConfigValueError), err: |
66 w_err(INVALID_ARGUMENT, _(u'Error: %s') % err) |
66 w_err(INVALID_ARGUMENT, _(u'Error: %s') % err) |
67 except NoSectionError, err: |
67 except NoSectionError, err: |
68 w_err(INVALID_ARGUMENT, _(u"Error: No section '%s'") % err.section) |
68 w_err(INVALID_ARGUMENT, |
|
69 _(u"Error: Unknown section: '%s'") % err.section) |
69 except NoOptionError, err: |
70 except NoOptionError, err: |
70 w_err(INVALID_ARGUMENT, |
71 w_err(INVALID_ARGUMENT, |
71 _(u"Error: No option '%(option)s' in section: '%(section)s'") % |
72 _(u"Error: No option '%(option)s' in section: '%(section)s'") % |
72 {'option': err.option, 'section': err.section}) |
73 {'option': err.option, 'section': err.section}) |
73 if handler.has_warnings(): |
74 if handler.has_warnings(): |