Skip to content

Commit

Permalink
Add wildcard support to nackable subscriptions (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson authored Jun 26, 2020
1 parent 882ab12 commit 7cb7f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eiffellib/subscribers/eiffel_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _call_subscribers(self, meta_type, event):
at_least_one = False
for callback in self.subscribers.get(meta_type, []) + self.subscribers.get("*", []):
callback(event, self.get_context(event))
for callback in self.nackables.get(meta_type, []):
for callback in self.nackables.get(meta_type, []) + self.nackables.get("*", []):
at_least_one = True
response = callback(event, self.get_context(event))
if response is True:
Expand Down

0 comments on commit 7cb7f51

Please sign in to comment.