Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 8373b38

Browse files
committed
Fix printing the format function instead of the format_ variable
1 parent f227ffd commit 8373b38

File tree

1 file changed

+2
-2
lines changed
  • native/python_package/python_driver

1 file changed

+2
-2
lines changed

native/python_package/python_driver/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_processor_instance(format_: str, custom_inbuffer: InBuffer=None,
3131
"""
3232
conf = ProcessorConfigs.get(format_)
3333
if not conf:
34-
raise RequestInstantiationException('No RequestProcessor found for format %s' % format)
34+
raise RequestInstantiationException('No RequestProcessor found for format %s' % format_)
3535

3636
inbuffer = custom_inbuffer if custom_inbuffer else conf['inbuffer']
3737
outbuffer = custom_outbuffer if custom_outbuffer else conf['outbuffer']
@@ -49,7 +49,7 @@ def main() -> None:
4949
except UnicodeDecodeError:
5050
print_exc()
5151
print('Error while trying to decode the message, are you sure you are not '
52-
'using a different input format that the currently configured (%s)?' % format)
52+
'using a different input format that the currently configured (%s)?' % format_)
5353

5454

5555
if __name__ == '__main__':

0 commit comments

Comments
 (0)