Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when updating the Account configuration page #1220

Open
Hammarn opened this issue Apr 25, 2024 · 1 comment
Open

Error 500 when updating the Account configuration page #1220

Hammarn opened this issue Apr 25, 2024 · 1 comment

Comments

@Hammarn
Copy link
Contributor

Hammarn commented Apr 25, 2024

So this seems to be caused by the field Subject terms being empty. As far as I can tell other fields can be empty and not cause the error when saving the page.

@pekrau
Copy link
Contributor

pekrau commented May 6, 2024

(Sorry, I forgot this.) The line:

dialect = csv.Sniffer().sniff(indata)

needs to be changed to:

            try:
                dialect = csv.Sniffer().sniff(indata)
            except csv.Error:
                dialect = "excel"

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

No branches or pull requests

2 participants