From 2089eb84477ede70fbc672d250e565a024b86cd7 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Tue, 13 Dec 2016 10:52:25 +0100 Subject: [PATCH] Raise a proper exception, not a string Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5247 --- tools/ade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ade b/tools/ade index 1d00869..366692c 100755 --- a/tools/ade +++ b/tools/ade @@ -547,7 +547,7 @@ class SysrootManager: os.makedirs(dest, exist_ok=True) filename = tempfile.NamedTemporaryFile(dir=dest).name except Exception as e: - raise("Couldn't create download directory: {0}".format(e)) + raise SysrootManagerError("Couldn't create download directory: {0}".format(e)) try: hook = None -- GitLab