diff --git a/brs_utils/misc.py b/brs_utils/misc.py index 1e6abce..a89c966 100644 --- a/brs_utils/misc.py +++ b/brs_utils/misc.py @@ -47,10 +47,11 @@ def subprocess_call( shell=False ) # nosec logger.debug(CPE) - return CPE.returncode, CPE + return CPE except OSError as e: logger.error(e) - return -1, CPE + logger.debug(CPE) + return CPE def total_size(o, handlers={}, verbose=False): """ Returns the approximate memory footprint an object and all of its contents.