In article <[EMAIL PROTECTED]>, Hari Sekhon wrote:
> I want to wrap a whole script in try ... except. What is the best way of 
> doing this?

You could do this maybe:

  import sys

  def excepthook(exc_type, exc_value, tb):
    import modules_needed_to_notify_exception
    ...

  sys.excepthook = excepthook

  import modules_needed_by_script
  ...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to