Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/
Date: Mon, 05 May 2014 19:17:46
Message-Id: 1396469063.876edf3306f3d1c739f60199bef6082e4ac96459.dol-sen@gentoo
1 commit: 876edf3306f3d1c739f60199bef6082e4ac96459
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 3 18:48:31 2014 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Wed Apr 2 20:04:23 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=876edf33
7
8 main.py: print the output of an ImportError to help in debugging.
9
10 ---
11 catalyst/main.py | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 diff --git a/catalyst/main.py b/catalyst/main.py
15 index 4146bca..bba3cba 100644
16 --- a/catalyst/main.py
17 +++ b/catalyst/main.py
18 @@ -227,9 +227,10 @@ def import_modules():
19 raise CatalystError,"Can't find " + x + ".py plugin in " + \
20 module_dir
21
22 - except ImportError:
23 + except ImportError as e:
24 print "!!! catalyst: Python modules not found in "+\
25 module_dir + "; exiting."
26 + print e
27 sys.exit(1)
28
29 return targetmap