Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 3/8] main.py: print the output of an ImportError to help in debugging.
Date: Wed, 02 Apr 2014 20:30:13
Message-Id: 1396470583-8756-3-git-send-email-dolsen@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 2/8] Initial separation and creation of contents.py by Brian Dolbec
1 ---
2 catalyst/main.py | 3 ++-
3 1 file changed, 2 insertions(+), 1 deletion(-)
4
5 diff --git a/catalyst/main.py b/catalyst/main.py
6 index 4146bca..bba3cba 100644
7 --- a/catalyst/main.py
8 +++ b/catalyst/main.py
9 @@ -227,9 +227,10 @@ def import_modules():
10 raise CatalystError,"Can't find " + x + ".py plugin in " + \
11 module_dir
12
13 - except ImportError:
14 + except ImportError as e:
15 print "!!! catalyst: Python modules not found in "+\
16 module_dir + "; exiting."
17 + print e
18 sys.exit(1)
19
20 return targetmap
21 --
22 1.8.5.3