Skip to content

Commit

Permalink
Use correct signature for subprocess.CalledProcessError
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasselmeci committed Oct 23, 2023
1 parent d2a5f64 commit 7960ab5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yumconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ def repoquery(self, *args):
if not retcode:
return output
else:
raise subprocess.CalledProcessError("repoquery failed")
raise subprocess.CalledProcessError(retcode,
cmd,
output,
"")


def install(self, installroot, packages):
Expand Down

0 comments on commit 7960ab5

Please sign in to comment.