Permalink
Browse files

Issue #21

  • Loading branch information...
1 parent 1f6d33f commit b2f54b30c3303029634e673df05aed1b1c1dc7f9 @ilkin ilkin committed Jan 14, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 sublime_evernote.py
View
8 sublime_evernote.py
@@ -48,7 +48,7 @@ def connect(self,callback,**kwargs):
def _connect(authToken):
try:
callback(**kwargs)
- except Exception,e:
+ except Exception as e:
sublime.error_message("error:%s"%e)
def on_verifier(verifier):
@@ -129,14 +129,14 @@ def sendnote(title,tags):
cnote = noteStore.createNote(authToken, note)
sublime.status_message("send success guid:%s"%cnote.guid)
sublime.message_dialog("success")
- except Errors.EDAMUserException,e:
+ except Errors.EDAMUserException as e:
args = dict(title=title,tags=tags)
if e.errorCode == 9:
self.connect(self.send_note,**args)
else:
if sublime.ok_cancel_dialog('error %s! retry?'%e):
self.connect(self.send_note,**args)
- except Exception,e:
+ except Exception as e:
sublime.error_message('error %s'%e)
def on_title(title):
@@ -158,4 +158,4 @@ def run(self, edit):
if not settings.get("oauth_token") and not settings.get("noteStoreUrl"):
self.connect(self.send_note)
else:
- self.send_note()
+ self.send_note()

0 comments on commit b2f54b3

Please sign in to comment.