Issue #4: Added a try/except block to detect file-not-found errors and forced the issue of a warning in this case.