how it works ?
You could use Try-Except to capture any runtime exceptions. See 8. Errors and Exceptions — Python 3.9.1 documentation[^]
It is very unusual to see a filename without a path - try including the explicit location of the file - don't make this the root of your c:drive or anything under "Program Files"