summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 7c1060f12..aa8d3c0a1 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -886,14 +886,14 @@ class config(object):
try:
mod = load_mod(best_mod)
except ImportError:
- if best_mod.startswith("cache."):
+ if not best_mod.startswith("cache."):
+ raise
+ else:
best_mod = "portage." + best_mod
try:
mod = load_mod(best_mod)
except ImportError:
- pass
- if mod is None:
- raise
+ raise
return mod
def lock(self):