Skip to content
Snippets Groups Projects
Commit 2089eb84 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

Raise a proper exception, not a string


Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D5247
parent bd643167
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment