diff --git a/platypush/backend/__init__.py b/platypush/backend/__init__.py index 559f41e4a9..0d81c2f747 100644 --- a/platypush/backend/__init__.py +++ b/platypush/backend/__init__.py @@ -196,6 +196,8 @@ class Backend(Thread): """ try: redis = get_backend('redis') + if not redis: + raise KeyError() except KeyError: self.logger.warning("Backend {} does not implement send_message " + "and the fallback Redis backend isn't configured")