Skip to content

optimised runcmd func in tools/icu/icutrim.py

Rodrigo Muino Tomonari requested to merge github/fork/jaisipani/patch-2 into main

Replaced the usage of os.system with subprocess.check_call for better security and error handling.

Used a try-except block to handle CalledProcessError exceptions raised by subprocess.check_call.

Return the return code of the command execution (e.returncode) when an error occurs, to allow better handling in the calling code.

Merge request reports

Loading