diff --git a/terminatorlib/configfile.py b/terminatorlib/configfile.py index 1437f1c2..81106787 100644 --- a/terminatorlib/configfile.py +++ b/terminatorlib/configfile.py @@ -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)