From a2146940f7840612ae16df2df58c669c39158642 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 12 May 2022 19:16:58 -0400 Subject: [PATCH] use an f string for the error message --- bacon/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]: