result = dialog.run()
dialog.hide()
- self.handle_prefs_response(result)
if result == gtk.RESPONSE_CANCEL or result == gtk.RESPONSE_DELETE_EVENT:
return None
+ self.handle_prefs_response(result)
return result == gtk.RESPONSE_YES
try:
return oauth.OAuthToken.from_string(token_str)
except KeyError, e:
- print token_str
- import traceback
- traceback.print_exc()
+ print "Invalid: ", token_str
return None