Closed aschwanb closed 6 years ago
This sounds reasonable. I would take a PR to this effect.
Will do. Looks like it got overlooked in this pull-request. I only found it in one place.
Pull request submitted: https://github.com/salopensource/sal-scripts/pull/27
The
--silent
option has been added tocurl
inutils.py
: https://github.com/salopensource/sal-scripts/blob/master/utils.py#L83 Because of this the followingstderr
will always be of type string and empty:This leads to all
if stderr is not None:
statments beint evaluated as True.I don't know if this is intended behaviour but it would be good to change the statements to something like
if stderr
to make the behavour more explicit.