Skip to content

Type Error in parse_field_errors in exceptions.py #448

@robd003

Description

@robd003

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions