Add sanity check when getting file IOs (must be string/filename or IO object w/read attribute).
Add sanity check when getting file IOs (must be string/filename or IO object w/read attribute).

Fizzadar/pyinfra,Fizzadar/pyinfra