Skip to content
Snippets Groups Projects
Commit d52b58ed authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

BUG: remove f-string

parent eee2c366
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ def check_forbidden_characters(text, characters, text_type):
"""
bad = [character for character in characters if character in text]
if len(bad) > 0:
raise ValueError(f'Invalid character(s) "{"".join(bad)}" in {text_type}: {text}')
raise ValueError('Invalid character(s) "{}" in {}: {}'.format("".join(bad), text_type, text))
def read_line(line: str) -> Tuple[int, PurePath, str]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment