mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
try again
This commit is contained in:
@@ -28,10 +28,6 @@ class CsvFileValidator:
|
||||
self.message = message
|
||||
|
||||
def __call__(self, form, field):
|
||||
if not Spreadsheet.approves_headers(field.data):
|
||||
raise ValidationError(
|
||||
f"{field.data.filename} does not have headers in row 1"
|
||||
)
|
||||
if not Spreadsheet.can_handle(field.data.filename):
|
||||
raise ValidationError(
|
||||
"{} is not a spreadsheet that Notify can read".format(
|
||||
|
||||
Reference in New Issue
Block a user