If for example I was using the following code to open an application:
import os
os.system("open /Applications/IAmAnApp.app")
But if there is no such application such as IAmAnApp, it will display this message:
The file /Users/Username/Desktop/Python/iamanapp does not exist.
I tried using try then except, but it's not an error, just a message.
How can I disable this message and just let the code continue?