Skip to content

Commit

Permalink
Update perma_web/perma/forms.py
Browse files Browse the repository at this point in the history
Co-authored-by: cmsetzer <[email protected]>
  • Loading branch information
rebeccacremona and cmsetzer authored Dec 5, 2024
1 parent 92e032f commit d6479f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perma_web/perma/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def clean_csv_file(self):
'last_name': row.get('last_name', '').strip()
}

if not len(self.user_data):
if not self.user_data:
raise forms.ValidationError("CSV file must contain at least one user.")

file.seek(0)
Expand Down

0 comments on commit d6479f5

Please sign in to comment.