diff --git a/Lib/mailcap.py b/Lib/mailcap.py index bd0fc0981c8..ae416a8e9fb 100644 --- a/Lib/mailcap.py +++ b/Lib/mailcap.py @@ -251,6 +251,7 @@ def test(): else: print("Executing:", command) sts = os.system(command) + sts = os.waitstatus_to_exitcode(sts) if sts: print("Exit status:", sts)