Undo error handling brain-damage
This commit is contained in:
parent
00840a13cc
commit
e78d57beab
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue