From c99040ae474ceb8ea24f7662f54a691d79129174 Mon Sep 17 00:00:00 2001 From: Matthew Foran Date: Mon, 23 May 2022 21:36:02 -0400 Subject: [PATCH] check if attempt is None --- export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export.py b/export.py index 068afa4..68d4d16 100644 --- a/export.py +++ b/export.py @@ -473,7 +473,7 @@ def findCourseAssignments(course): hasattr(submission, "submission_comments") else "" # Attempt sub_view.attempt = submission.attempt if \ - hasattr(submission, "attempt") else 0 + hasattr(submission, "attempt") and submission.attempt is not None else 0 # User ID sub_view.user_id = str(submission.user_id) if \ hasattr(submission, "user_id") else ""