diff --git a/android/app/src/main/cpp/app/organicmaps/editor/OsmOAuth.cpp b/android/app/src/main/cpp/app/organicmaps/editor/OsmOAuth.cpp index 9987212c8..784d666ab 100644 --- a/android/app/src/main/cpp/app/organicmaps/editor/OsmOAuth.cpp +++ b/android/app/src/main/cpp/app/organicmaps/editor/OsmOAuth.cpp @@ -17,17 +17,9 @@ using namespace jni; bool LoadOsmUserPreferences(std::string const & oauthToken, UserPreferences & outPrefs) { - try - { - ServerApi06 const api(OsmOAuth::ServerAuth(oauthToken)); - outPrefs = api.GetUserPreferences(); - return true; - } - catch (std::exception const & ex) - { - LOG(LWARNING, ("Can't load user preferences from server: ", ex.what())); - } - return false; + ServerApi06 const api(OsmOAuth::ServerAuth(oauthToken)); + outPrefs = api.GetUserPreferences(); + return (outPrefs.m_id != 0); } } // namespace