Undo error handling brain-damage

This commit is contained in:
Thomas Hurst 2008-09-22 15:45:48 +01:00
parent 00840a13cc
commit e78d57beab

View File

@ -143,11 +143,9 @@ class ConfigFile:
if self._line[self._pos:] != '':
raise ConfigSyntaxError(_("Unexpected token"), self)
self._line_ok()
except ConfigSyntaxError, e:
self._line_error(e)
else:
self._line_ok()
if self.errors:
raise ParsedWithErrors(self.filename, self.errors)