From 7f56dd4ac4c3285adb6d246e2fa1f98332f418e5 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Sun, 2 Oct 2011 10:03:49 +0200 Subject: [PATCH] euscan: fix a stupid bug finally is always called, so the list was always empty. Signed-off-by: Corentin Chary --- bin/euscan | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/euscan b/bin/euscan index 34cd05b..0284685 100755 --- a/bin/euscan +++ b/bin/euscan @@ -203,6 +203,8 @@ def main(): httplib.HTTPConnection.debuglevel = 1 for package in packages: + ret = [] + try: ret = scan_upstream(package) except AmbiguousPackageName as e: @@ -218,8 +220,8 @@ def main(): pp.die(1, "one of the above fully-qualified ebuild names instead.") except GentoolkitException as err: pp.die(1, str(err)) - finally: - ret = [] + except Exception as err: + pp.die(1, str(err)) print ()