无法连接 'str' 和 'NoneType' 对象

作者: yathi创建于 2016年9月15日更新于 2021年1月15日

我正在尝试让蜜蜂发动攻击。这是我第一次使用它们。当我运行: `bees.attack('myurlhere', 2, 2)` 我得到: `Traceback (most recent call last): File "beesTest.py", line 43, in <module> bees.attack('https://api.rewardops.net/api/v4/auth/token', 2, 2) File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 673, in attack username, key_name, zone, instance_ids = _read_server_list(options.get('zone')) File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 69, in _read_server_list MR_STATE_FILENAME = _get_new_state_file_name(mr_zone[-1]) File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 1267, in _get_new_state_file_name return STATE_FILENAME+'.'+zone TypeError: 不能连接 'str' 和 'NoneType' 对象

内容来源: newsapps/beeswithmachineguns