TclErrors not caught and printed to terminal

Issue #82 resolved
Juan Pablo Caram repo owner created an issue

Example:

Traceback (most recent call last):
  File "/home/jpcaram/jpcgt-flatcam-ac667682b3bf/termwidget.py", line 54, in keyPressEvent
    self._termWidget.exec_current_command()
  File "/home/jpcaram/jpcgt-flatcam-ac667682b3bf/termwidget.py", line 192, in exec_current_command
    self.child_exec_command(text)
  File "/home/jpcaram/jpcgt-flatcam-ac667682b3bf/FlatCAMShell.py", line 25, in child_exec_command
    self._sysShell.exec_command(text)
  File "/home/jpcaram/jpcgt-flatcam-ac667682b3bf/FlatCAMApp.py", line 554, in exec_command
    result = self.tcl.eval(str(text))
_tkinter.TclError: invalid command name "dir"

Comments (2)

  1. Juan Pablo Caram reporter

    Exception is caught but re-raised:

    try:
        result = self.tcl.eval(str(text))
        self.shell.append_output(result + '\n')
    except Tkinter.TclError, e:
        self.shell.append_error('ERROR: ' + str(e) + '\n')
        raise
    return
    
  2. Log in to comment