[tasque] [RTM] Fix #578279: Tasque crashes when RTM unavailable
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque] [RTM] Fix #578279: Tasque crashes when RTM unavailable
- Date: Wed, 29 Aug 2012 18:18:01 +0000 (UTC)
commit 2096a16343f69a552381e5be25c90ffd21a18a11
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Aug 26 23:45:11 2012 +0200
[RTM] Fix #578279: Tasque crashes when RTM unavailable
src/Backends/Rtm/RtmBackend.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Backends/Rtm/RtmBackend.cs b/src/Backends/Rtm/RtmBackend.cs
index 5fe5cc6..12b4aed 100644
--- a/src/Backends/Rtm/RtmBackend.cs
+++ b/src/Backends/Rtm/RtmBackend.cs
@@ -227,8 +227,12 @@ namespace Tasque.Backends.RtmBackend
rtm = null;
rtmAuth = null;
Logger.Error("Exception authenticating, reverting" + e.Message);
- }
- catch (RtmNet.RtmWebException e) {
+ } catch (ResponseXmlException e) {
+ rtm = null;
+ rtmAuth = null;
+ Logger.Error ("Cannot parse RTM response. Maybe the service is down."
+ + e.Message);
+ } catch (RtmNet.RtmWebException e) {
rtm = null;
rtmAuth = null;
Logger.Error("Not connected to RTM, maybe proxy: #{0}", e.Message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]