removed string formatting which is not supported in older python versions

This commit is contained in:
Jonas Depoix 2021-03-15 18:13:34 +01:00
parent a222195094
commit 2f592a37a2
1 changed files with 5 additions and 2 deletions

View File

@ -149,8 +149,11 @@ class FormatterLoader(object):
class UnknownFormatterType(Exception):
def __init__(self, formatter_type):
super(FormatterLoader.UnknownFormatterType, self).__init__(
f'The format \'{formatter_type}\' is not supported. '
f'Choose one of the following formats: {", ".join(FormatterLoader.TYPES.keys())}'
'The format \'{formatter_type}\' is not supported. '
'Choose one of the following formats: {supported_formatter_types}'.format(
formatter_type=formatter_type,
supported_formatter_types=', '.join(FormatterLoader.TYPES.keys()),
)
)
def load(self, formatter_type='pretty'):