We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2d65f6 commit 069f6aaCopy full SHA for 069f6aa
1 file changed
obd/elm327.py
@@ -210,7 +210,9 @@ def set_protocol(self, protocol_):
210
if protocol_ is not None:
211
# an explicit protocol was specified
212
if protocol_ not in self._SUPPORTED_PROTOCOLS:
213
- logger.error("%s is not a valid protocol. Please use \"1\" through \"A\"")
+ logger.error(
214
+ "{:} is not a valid protocol. ".format(protocol_) +
215
+ "Please use \"1\" through \"A\"")
216
return False
217
return self.manual_protocol(protocol_)
218
else:
0 commit comments