标签: python
我正在尝试在函数中对url调用get方法。我有以主管身份运行的脚本。即该函数将在需要时自动调用。调用该函数时,出现错误:
'NoneType' object has no attribute '__getitem__'
supervisor.py
def bug_kill(): url = "www.example.com" r = requests.get(url) if system_status["First"] == "First": bug_kill()