diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index e3403640..3fd8a82c 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -133,7 +133,7 @@ class IMMClient(object): @staticmethod def _parse_builddate(strval): - if not isinstance(strval, ,str): + if not isinstance(strval, str) and isinstance(strval, bytes): strval = strval.decode('utf-8') try: return datetime.strptime(strval, '%Y/%m/%d %H:%M:%S')