Removed exception handling from patchByFile

-