diff --git a/bmspy/bms.py b/bmspy/bms.py index ef2149c..27ad150 100755 --- a/bmspy/bms.py +++ b/bmspy/bms.py @@ -171,7 +171,7 @@ def requestMessage(reqmsg): cleanup() return response except Exception as e: - print("error communicating...: {0}".function(str(e))) + print("error communicating...: {0}".format(str(e))) else: print("cannot open serial port")