None.split() will cause problem. So we'd better use default value for it as: params.get("packet_size", "")