Fugitive sometimes causes bad filenames to be sent by expand('%'). So this try/catch block gracefully handles any unexpected filenames.