`Bash` type bug
guinan34 opened this issue · 1 comments
guinan34 commented
sp3c73r2038 commented
https://github.com/amoffat/sh/blob/1.14.2/sh.py#L337-L399
as you can see, ErrorReturnCode only has full_cmd/stdout/stderr/truncate
properties. it should use str(e)
here.
and e.exit_code do exist when the exception is an instance of ErrorReturnCode_${exit_code} like ErrorReturnCode_4
in this case.
I think it will be a easy fix.