Skip to content

Configurable exception handling #206

Open

Description

@hovi

If I try to run filters in templates (ex image.crop.300x300) using django tests with test client, I get an error if the image file is missing.
That is fine, but it complicates things for some types of automated tests we have. At some point we create fixtures based on our database and test if all pages are working. Some pages are crashing because image is physically missing for the test (which is correct), but it would be the easiest for this particular test to have silent failure.

Any chance this could get added as a configuration option? Happy to create PR if so.

Activity

  1. oliverhaas commented on Aug 23, 2024

    @oliverhaas

    Would love to see that! We're currently working around that behavior as well.

    If you start a PR, I will at least chime in, but I might have a go at it in the next month anyway.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions