From 8f2580fc988dbb710525786a90fea9e71f6a39ae Mon Sep 17 00:00:00 2001 From: Jens Rantil Date: Wed, 4 Dec 2013 13:56:57 +0100 Subject: [PATCH] module(apt_key): don't catch `SystemExit` If we do this, we risk outputting two JSON payloads, which will be unparsable. --- library/packaging/apt_key | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/apt_key b/library/packaging/apt_key index 17b52888d47..dee73762c62 100644 --- a/library/packaging/apt_key +++ b/library/packaging/apt_key @@ -138,7 +138,7 @@ def download_key(module, url): module.fail_json("error connecting to download key from url") data = connection.read() return data - except: + except Exception: module.fail_json(msg="error getting key id from url", traceback=format_exc())