Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python Services and excepthook (not working)

Reply
Thread Tools

Python Services and excepthook (not working)

 
 
Larry Bates
Guest
Posts: n/a
 
      03-05-2004
In an attempt to catch all exceptions that might
happen in my program, I have set an excepthook
so that I can catch the exception, get the
traceback and log it to a file. This works like
a charm for "normal" Python programs. I have
just begun to write Python services and this
methodology doesn't seem to work any more. It
appears that some other function is taking over
my excepthook and writes the traceback to the
Event Log (not a bad thing, just not what I want).
I would like to get back control so I can log
the exception to my log file (and email a message
to the administrator).

Anybody got an idea how I might accomplish this?

Thanks in advance,
Larry Bates
Syscon, Inc.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 2.5b2 and excepthook problem Larry Bates Python 0 08-07-2006 04:56 PM
Query : sys.excepthook exception in Python Pramod TK Python 0 04-26-2006 02:58 PM
Re: Query : sys.excepthook exception in Python Peter Hansen Python 0 04-10-2006 03:08 PM
RE: "Error in sys.excepthook" message from Python 2.3multi-threadedscript Tim Peters Python 0 10-30-2003 10:19 PM
"Error in sys.excepthook" message from Python 2.3 multi-threaded script Follower Python 1 10-27-2003 03:12 PM



Advertisments