-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
1
-
False
-
-
False
-
Unset
-
None
The ocviapy library is incorrectly handling sh Exceptions that have no 'stderr' output.
The problem is here:
https://github.com/RedHatInsights/ocviapy/blob/main/ocviapy/__init__.py#L170
If err_lines is [] then this 'all' function call returns True:
https://github.com/RedHatInsights/ocviapy/blob/main/ocviapy/__init__.py#L80
This is because all([]) evaluates to True