Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Update PluginEntry.py
Browse files Browse the repository at this point in the history
record errorlog
  • Loading branch information
megachweng authored Jul 26, 2018
1 parent 4579a6e commit 7e8cedd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PluginEntry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ def runPlugin():
global __window
__window = Window()
except Exception, e:
traceback.print_exc(file=open('error.log', 'w+'))
traceback.print_exc(file=open('errorInFuc.log', 'w+'))


# create menu item
action = QAction("Import your WordBook", mw)
mw.connect(action, SIGNAL("triggered()"), runPlugin)
mw.form.menuTools.addAction(action)
try:
action = QAction("Import your WordBook", mw)
mw.connect(action, SIGNAL("triggered()"), runPlugin)
mw.form.menuTools.addAction(action)
except Exception, e:
traceback.print_exc(file=open('error.log', 'w+'))

0 comments on commit 7e8cedd

Please sign in to comment.