From 45b80ecab4354ea0688c094183c0c1f602d7db3e Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 6 Jan 2023 21:55:07 -0800 Subject: [PATCH] Raise RepoAddError from original exception --- packaging_scripts/repos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging_scripts/repos.py b/packaging_scripts/repos.py index 36bc46b..be90c24 100644 --- a/packaging_scripts/repos.py +++ b/packaging_scripts/repos.py @@ -50,7 +50,7 @@ def db_modify(operation, db, *args): try: process = _run_script(operation, str(db), *args) except subprocess.CalledProcessError as e: - raise RepoAddError(e) + raise RepoAddError(e) from e else: syslog.debug(process.stdout) syslog.info("Database operation complete")