diff --git a/bacon/script.py b/bacon/script.py index b31f0c2..d9a3102 100644 --- a/bacon/script.py +++ b/bacon/script.py @@ -22,7 +22,7 @@ class SyntaxErrorListener(ErrorListener): """An error listener that raises SyntaxError exceptions.""" def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e): - raise SyntaxError("line {}:{} {}".format(line, column, msg)) + raise SyntaxError(f"line {line}:{column} {msg}") def load_config(file: str = 'server.cfg') -> Dict[int, object]: