From 96c9d5460a09611fafb631a920ac4a5c26843a0e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 16 Jul 2019 16:51:27 +0200 Subject: [PATCH] Log the underlying error cause too if get_plugin fails --- platypush/context/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/context/__init__.py b/platypush/context/__init__.py index 49cd3532..9226c2e5 100644 --- a/platypush/context/__init__.py +++ b/platypush/context/__init__.py @@ -106,7 +106,7 @@ def get_plugin(plugin_name, reload=False): try: plugin_class = getattr(plugin, cls_name) except AttributeError as e: - logger.warning('No such class in {}: {}'.format(plugin_name, cls_name)) + logger.warning('No such class in {}: {} [error: {}]'.format(plugin_name, cls_name, str(e))) raise RuntimeError(e) with plugins_init_locks[plugin_name]: