Permalink
Browse files

Merge pull request #22 from ilkin/patch-1

Issue #21
  • Loading branch information...
2 parents 1f6d33f + b2f54b3 commit cbefa0b03784ad636b430cb146ed11ad25067886 @jamiesun committed Mar 8, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 sublime_evernote.py
View
@@ -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 cbefa0b

Please sign in to comment.