Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorAndrew Flegg <andrew@bleb.org>
Sat, 18 Dec 2010 14:59:40 +0000 (14:59 +0000)
committerAndrew Flegg <andrew@bleb.org>
Sun, 2 Jan 2011 19:53:45 +0000 (19:53 +0000)
startup. (Fixes MB#11490, reported by Ove Nordstrom)

package/src/org/maemo/hermes/engine/provider_oauth.py

index 95b8684..690dcef 100644 (file)
@@ -175,10 +175,15 @@ class OAuthProvider(org.maemo.hermes.engine.provider.Provider):
         """Returns an oauth.OAuthToken, or None if the gconf value is empty"""
         
         token_str = self._gc.get_string(self.GCONF_ACCESS_TOKEN % (self.get_id()))
-        print token_str
         if not token_str or len(token_str) < 8:
             return None
-        return oauth.OAuthToken.from_string(token_str)
+        try:
+            return oauth.OAuthToken.from_string(token_str)
+        except KeyError, e:
+            print token_str
+            import traceback
+            traceback.print_exc()
+            return None
 
 
     # -----------------------------------------------------------------------

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment