try: buf = bytearray(37) if len(systemCode) != 37: raise Exception("exception sn load error")except Exception as e: raise Exception(e)