commit: 9ad4ed599f2e56d7a73f129ec8969d7295fd8df3
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu May 3 01:12:55 2018 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu May 3 01:12:55 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=9ad4ed59
bin/ebuild: selectively handle PortageKeyerror from doebuild
In order to avoid swallowing an unexpected KeyError, selectively
handle PortageKeyerror from doebuild.
bin/ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/ebuild b/bin/ebuild
index b1ef0573b..5221b21a8 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -1,5 +1,5 @@
#!/usr/bin/python -b
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import print_function
@@ -352,7 +352,7 @@ for arg in pargs:
except KeyboardInterrupt:
print("Interrupted.")
a = 1
- except KeyError:
+ except PortageKeyError:
# aux_get error
a = 1
except UnsupportedAPIException as e: