exception handling for geolocation