title: Python return fatal error with try except when compiling in pyinstaller
body: <p>I coded this in my script to execute a script.
  When the Tkinter window is closed it returns the error and closes all the windows, but when I compile this with pyinstaller it returns me a fatal error!</p>
  <pre><code>while True:
     script()
     try:
          root.update()
     except TclError:
          break
  exit()
  </code></pre>
  <p>Can I fix it?</p>