module(apt_key): don't catch `SystemExit`

If we do this, we risk outputting two JSON payloads, which will be
unparsable.
reviewable/pr18780/r1
Jens Rantil 11 years ago
parent edc877d6b0
commit c475814519

@ -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())

Loading…
Cancel
Save