From f78eacb3a5323d00c1df2fc43cb56912d99fa55e Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 21 Oct 2021 11:15:09 +0200 Subject: [PATCH] athena: listUploadQueue, check None first old-commit-hash: bde568205e5fe930d99fa4a7f16830077e962c15 --- selfdrive/athena/athenad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index 2265793790..fadbad0bf8 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -253,7 +253,7 @@ def uploadFileToUrl(fn, url, headers): @dispatcher.add_method def listUploadQueue(): items = list(upload_queue.queue) + list(cur_upload_items.values()) - return [i._asdict() for i in items if i.id not in cancelled_uploads and i is not None] + return [i._asdict() for i in items if (i is not None) and (i.id not in cancelled_uploads)] @dispatcher.add_method