mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Allow specifying different override_layout signal in derived classes (Z#23210691) (#5534)
* Fix incorrect exception messages * Allow specifying different override_layout signal in derived classes
This commit is contained in:
@@ -170,7 +170,7 @@ class PluginSignal(Generic[T], django.dispatch.Signal):
|
||||
second receiver and so on. The return value of the last receiver is returned by this method.
|
||||
"""
|
||||
if sender and not isinstance(sender, self.type):
|
||||
raise ValueError("Sender needs to be an event.")
|
||||
raise ValueError(f"Sender needs to be of type {self.type}.")
|
||||
|
||||
response = named.get(chain_kwarg_name)
|
||||
if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS:
|
||||
@@ -192,7 +192,7 @@ class PluginSignal(Generic[T], django.dispatch.Signal):
|
||||
stopping the response chain at the offending receiver.
|
||||
"""
|
||||
if sender and not isinstance(sender, self.type):
|
||||
raise ValueError("Sender needs to be an event.")
|
||||
raise ValueError(f"Sender needs to be of type {self.type}.")
|
||||
|
||||
responses = []
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user