Der Python-Try-Block erkennt keine os.system-Ausnahmen
Ich habe diesen Python-Code:
import os
try:
os.system('wrongcommand')
except:
print("command does not work")
Der Code druckt:
wrongcommand: command not found
Anstattcommand does not work
. Weiß jemand, warum meine Fehlermeldung nicht gedruckt wird?