Hello everyone so I was learning try and except method and I encounter this code
import sys
if "linux" not in sys.platform:
raise RuntimeError("Function can only run on Linux systems.")
print("Doing Linux things.")
try:
linux_interaction()
except:
pass```
so here the output comes out as nothing and that is due to pass statement in except, I got that but what I wanna ask is first the code must have tried to run the function and it should raise a runtime error as stated and then the it should be the except block since there was an error in the function, so why was the Runtime error not shown and you get a blank screen