You called an external command with subprocess.run and even added a timeout. The exception was raised properly. Yet, when you ...