Skip to content

Commit fe3e4d9

Browse files
committed
Ignore empty comments. Fixes #10.
1 parent eba9638 commit fe3e4d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/assignmenttool/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def process(config):
150150
raise AToolError(f'Could not find maximum score for task {task}')
151151
record['score'] = row.Value
152152
elif row.Type.upper() == 'COMMENT':
153+
if pd.isna(row.Value):
154+
continue # Ignore empty comments
153155
# Check if this is a comment that applies to the entire sheet
154156
if pd.isna(row.Task) and pd.isna(row.Subtask):
155157
sheet_comments[row.Username].append(row.Value)

0 commit comments

Comments
 (0)