removed string formatting which is not supported in older python versions
This commit is contained in:
parent
a222195094
commit
2f592a37a2
|
@ -149,8 +149,11 @@ class FormatterLoader(object):
|
||||||
class UnknownFormatterType(Exception):
|
class UnknownFormatterType(Exception):
|
||||||
def __init__(self, formatter_type):
|
def __init__(self, formatter_type):
|
||||||
super(FormatterLoader.UnknownFormatterType, self).__init__(
|
super(FormatterLoader.UnknownFormatterType, self).__init__(
|
||||||
f'The format \'{formatter_type}\' is not supported. '
|
'The format \'{formatter_type}\' is not supported. '
|
||||||
f'Choose one of the following formats: {", ".join(FormatterLoader.TYPES.keys())}'
|
'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'):
|
def load(self, formatter_type='pretty'):
|
||||||
|
|
Loading…
Reference in New Issue