tasque r171 - in trunk: . src/Backends/Rtm
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tasque r171 - in trunk: . src/Backends/Rtm
- Date: Mon, 22 Dec 2008 23:51:56 +0000 (UTC)
Author: sharm
Date: Mon Dec 22 23:51:56 2008
New Revision: 171
URL: http://svn.gnome.org/viewvc/tasque?rev=171&view=rev
Log:
* tasque/src/Backends/Rtm/RtmPreferencesWidget.cs: Handle exceptions
when trying to get an authorization URL for RTM. Fixes bug #563932.
Modified:
trunk/ChangeLog
trunk/src/Backends/Rtm/RtmPreferencesWidget.cs
Modified: trunk/src/Backends/Rtm/RtmPreferencesWidget.cs
==============================================================================
--- trunk/src/Backends/Rtm/RtmPreferencesWidget.cs (original)
+++ trunk/src/Backends/Rtm/RtmPreferencesWidget.cs Mon Dec 22 23:51:56 2008
@@ -93,7 +93,14 @@
RtmBackend rtmBackend = Application.Backend as RtmBackend;
if (rtmBackend != null) {
if (!isAuthorized && !authRequested) {
- string url = rtmBackend.GetAuthUrl();
+ string url = string.Empty;
+ try {
+ url = rtmBackend.GetAuthUrl();
+ } catch (Exception) {
+ Logger.Debug ("Failed to get auth URL from Remember the Milk. Try again later.");
+ authButton.Label = Catalog.GetString ("Remember the Milk not responding. Try again later.");
+ return;
+ }
Logger.Debug("Launching browser to authorize with Remember the Milk");
try {
Application.Instance.NativeApplication.OpenUrl (url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]