Skip to content

Comments

Fix INVALID_TYPE_MESSAGE error message#229

Open
johnthagen wants to merge 1 commit intoHipo:masterfrom
johnthagen:patch-1
Open

Fix INVALID_TYPE_MESSAGE error message#229
johnthagen wants to merge 1 commit intoHipo:masterfrom
johnthagen:patch-1

Conversation

@johnthagen
Copy link
Contributor

@johnthagen johnthagen commented Oct 14, 2025

INVALID_TYPE_MESSAGE is used in the following block:

            if file_extension not in self.ALLOWED_TYPES:
                raise ValidationError(self.INVALID_TYPE_MESSAGE)

The current error message is misleading because it says that the type couldn't be determined, but really the type is not allowed in the ALLOWED_TYPES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant