Skip to content

Commit

Permalink
rf: use datasalad CommandError API throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Jun 17, 2024
1 parent 04548be commit 504064d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datalad_next/runners/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _call_git(
# normalize exception to datalad-wide standard
raise CommandError(
cmd=cmd,
code=e.returncode,
returncode=e.returncode,
stdout=e.stdout,
stderr=e.stderr,
cwd=cwd,
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/shell/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def to_exception(self,
if isinstance(command, bytes)
else str(command),
msg=message,
code=self.returncode,
returncode=self.returncode,
stdout=self.stdout,
stderr=self.stderr,
)
Expand Down

0 comments on commit 504064d

Please sign in to comment.