Commit 02a9a875 authored by Remi Perenon's avatar Remi Perenon
Browse files

Debugging error message in converter, (but plugin does not close)

parent cb84004a
......@@ -151,9 +151,12 @@ class JobPlugin(ComponentPlugin):
PUBLISHER.sendMessage("msg_set_data", message=self)
def on_close(self, event):
self.parent.mgr.ClosePane(self.parent.mgr.GetPane(self))
try:
self.parent.mgr.ClosePane(self.parent.mgr.GetPane(self))
except AttributeError:
# If the job is a converter, the parent has no mgr attribute
pass
class JobFrame(wx.Frame):
def __init__(self, parent, jobType, datakey=None):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment