Clean way to handle file not found exception
I would suggest not opening the file in your function but instead returning the path or None, such that the caller can open the file using a with statement.