Raise RepoAddError from original exception

This commit is contained in:
Eric Torres 2023-01-06 21:55:07 -08:00
parent 162e7c00a6
commit 45b80ecab4

View File

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