Skip to content

Unlocking a page raises exception #367

Closed

Description

@jrief

In djangocms_versioning/admin.py:1276 (unlock_view) the function notify_version_author_version_unlocked is called which itself attempts to send an email to the user owning the lock.

However, if the project configuration does not configure an email backend, then this function can't connect and raises

OSError: [Errno 101] Network is unreachable.

In my opinion, such a network issue shall be logged but not cause an internal server error.

Activity

  1. fsbraun commented on Jan 10, 2024

    @fsbraun
    SponsorMember

    And, if no email backend is configured, it should not even try? (I.e. logs are not bloated with failed notifications if none are configured).

  2. locked and limited conversation to collaborators on Jan 10, 2024
  3. converted this issue into a discussion #368 on Jan 10, 2024
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions