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

Type Error in parse_field_errors in exceptions.py #448

Open
robd003 opened this issue Aug 20, 2022 · 1 comment
Open

Type Error in parse_field_errors in exceptions.py #448

robd003 opened this issue Aug 20, 2022 · 1 comment

Comments

@robd003
Copy link

robd003 commented Aug 20, 2022

Getting a weird issue with Django DB exceptions that aren't parsed correctly by the custom exception handler.

TypeError: string indices must be integers

This is on line 94 here: https://github.com/Fueled/django-init/blob/main/%7B%7Bcookiecutter.github_repository%7D%7D/%7B%7Bcookiecutter.main_module%7D%7D/base/exceptions.py#L94

Actual DB exception is IntegrityError duplicate key value violates unique constraint "unique_shortname" DETAIL: Key (domain_id, short_name)=(test.com, key_already_in_use) already exists.

@CuriousLearner
Copy link
Contributor

Hi @robd003

Do you have a minimal project where this exception occurred? It would be easier for someone to debug it that way.

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

No branches or pull requests

2 participants