This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: TclError not a subclass of StandardError
Type: Stage:
Components: Tkinter Versions: Python 2.3
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: loewis, nnorwitz, reowen
Priority: normal Keywords:

Created on 2004-11-18 17:48 by reowen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg60596 - (view) Author: Russell Owen (reowen) Date: 2004-11-18 17:48
Tkinter.TclError = _tkinter.TclError should be a subclass of 
StandardError, instead of just Exception.

This would allow easier error checking, e.g. GUI code that doesn't 
want to catch SystemExit or Warnings, e.g.:
   some mixed Tkinter and normal python code
except StandardError:
   bail out gracefully
msg64232 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2008-03-21 05:07
StandardError has been removed from Python 3.0.  It's use is deprecated.
 Instead of catching StandardError, do:

    # ...
  except Exception:
    # ...
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41190
2008-03-21 05:07:52nnorwitzsetstatus: open -> closed
assignee: loewis -> nnorwitz
resolution: out of date
messages: + msg64232
nosy: + nnorwitz
2004-11-18 17:48:24reowencreate