View Single Post
Old 12-16-2014, 08:56 AM   #7
turbulent
Member
turbulent began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2014
Device: kindle paperwhite
Quote:
Originally Posted by KevinH View Post
Hi,
That was fixed in Sigil 0.8.2. Are you sure you are using the very latest version?
Cuurently a print statement will show up immediately in the PluginRunner Window.

Kevin
Hi, Kevin

I'm using Sigil 0.8.2 on Win7. I create a test plugin as below:
Code:
def run(bk):
    print 'This line should be displayed.'
    print variable_not_exist
    return 0
Running this plugin, the message is:
Code:
Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\\python\launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\xj\AppData\Local\sigil-ebook\sigil\plugins\test\plugin.py", line 7, in run
    print variable_not_exist
NameError: global name 'variable_not_exist' is not defined
Error: global name 'variable_not_exist' is not defined
"variable_not_exist" is undefined to trigger the error. I expect the message "This line should be displayed." to show up. But it didn't.
turbulent is offline   Reply With Quote