Undo error handling brain-damage

This commit is contained in:
Thomas Hurst 2008-09-22 15:45:48 +01:00
parent 00840a13cc
commit e78d57beab
1 changed files with 1 additions and 3 deletions

View File

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