Browse files

return value from subscriber (even though technically nothing can rel…

…y on it)
  • Loading branch information...
1 parent 95f766b commit 94ce94a8ea8c299549b9d71899f0386bfeb32f92 @mcdonc mcdonc committed Aug 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyramid/config/
2 pyramid/config/
@@ -71,7 +71,7 @@ def _derive_subscriber(self, subscriber, predicates):
return subscriber
def subscriber_wrapper(event):
if all((predicate(event) for predicate in predicates)):
- subscriber(event)
+ return subscriber(event)
if hasattr(subscriber, '__name__'):
update_wrapper(subscriber_wrapper, subscriber)
return subscriber_wrapper

0 comments on commit 94ce94a

Please sign in to comment.