この同じ関数でエラーが発生し続け、その理由がわかりません。2回目に修正したと思いましたが、なぜこれがまだ問題なのかわかりません。エラーは時々ポップアップします。
これは私の最初のエラーでしたが、修正しました。
File "running.py", line 332, in run
TypeError: argument of type 'NoneType' is not iterable ================================================================================
05Oct 03:06:48: Exit status: 1
これは私の現在のコードです
def get_notifyees(jobdef):
origNotifyeesList = jobdef['notifyees'] if isinstance(jobdef['notifyees'], list) or jobdef['notifyees'] is None else [jobdef['notifyees']]
origNotifyeesList = origNotifyeesList if origNotifyeesList is not None else []
notifyeesList = []
for notifyee in origNotifyeesList:
if 'noreply' not in notifyee:
notifyeesList.append(notifyee)
return notifyeesList
しかし、私は今このエラーが発生しています
File "running.py", line 337, in get_notifyees
KeyError: 'notifyees'
================================================================================
10Oct 01:53:03: Exit status: 1