Skip to content

Commit 55c7926

Browse files
authored
Merge pull request #172 from lbl-anp/quick-log-fix
Patch invalid protocol error message.
2 parents b2d65f6 + 069f6aa commit 55c7926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)