1 |
commit: ee7978914f27c6a48cd1d6ee2667470aed25687f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 13 21:26:02 2015 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 13 21:26:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ee797891 |
7 |
|
8 |
config.__getitem__: fix blanket except clause to raise BaseException |
9 |
|
10 |
Fixes: 39d81c514c33 ("[...]config.__getitem__(): Partially drop backward compatibility for nonexistent keys.") |
11 |
|
12 |
pym/portage/package/ebuild/config.py | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py |
16 |
index 125d979..d45c2a0 100644 |
17 |
--- a/pym/portage/package/ebuild/config.py |
18 |
+++ b/pym/portage/package/ebuild/config.py |
19 |
@@ -2578,7 +2578,7 @@ class config(object): |
20 |
f.write("=" * 8 + " Traceback for invalid call to portage.package.ebuild.config.config.__getitem__ " + "=" * 8 + "\n") |
21 |
f.writelines(stack) |
22 |
f.write("=" * 96 + "\n") |
23 |
- except: |
24 |
+ except Exception: |
25 |
pass |
26 |
raise |
27 |
else: |