[mousetrap/gnome3-wip: 150/240] Better error message when plugin not found.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 150/240] Better error message when plugin not found.
- Date: Mon, 8 Sep 2014 15:25:10 +0000 (UTC)
commit f0849810c8596695b0bd9ae1ecff3d0cd8436fc8
Author: Stoney Jackson <dr stoney gmail com>
Date: Tue Jun 24 10:22:46 2014 -0400
Better error message when plugin not found.
src/mousetrap/main.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/mousetrap/main.py b/src/mousetrap/main.py
index 73f9a75..d1d013a 100644
--- a/src/mousetrap/main.py
+++ b/src/mousetrap/main.py
@@ -46,9 +46,10 @@ class App(object):
module = __import__('.'.join(class_path[:-1]), {}, {}, class_path[-1])
return getattr(module, class_path[-1])(self.config)
except ImportError as error:
+ print("ERROR")
LOGGER.error(
- '''Could not import plugin `%s`. Check the config file and
- PYTHONPATH to ensure that Python can find the plugin.'''
+ 'Could not import plugin `%s`. Check config file and PYTHONPATH.',
+ class_
)
raise
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]