Skip to content

Commit 069f6aa

Browse files
author
Joseph Curtis
committed
Patch invalid protocol error.
1 parent b2d65f6 commit 069f6aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

obd/elm327.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ def set_protocol(self, protocol_):
210210
if protocol_ is not None:
211211
# an explicit protocol was specified
212212
if protocol_ not in self._SUPPORTED_PROTOCOLS:
213-
logger.error("%s is not a valid protocol. Please use \"1\" through \"A\"")
213+
logger.error(
214+
"{:} is not a valid protocol. ".format(protocol_) +
215+
"Please use \"1\" through \"A\"")
214216
return False
215217
return self.manual_protocol(protocol_)
216218
else:

0 commit comments

Comments
 (0)