Fixed warning - unused variable in catch