Python FileNotFoundError

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Thrown by file-related functions when the file is not found.

To access the error message: e.strerror, which by default is "No such file or directory".

The full error message includes also the file in question, which can be accessed with e.filename.