You don't need to pass ```filename``` name in here. I believe you can use ```fh.name``` when you raise the exception.