Re: Reporting the line number of an exception

2008-05-29 Thread Peter Otten
sophie_newbie wrote: > I'm sure this is exceedingly simple but I can't find it anywhere. When > I catch an exception I would like to report the line number of the > exception as well as the error info. > > try: > someError() > except Exception, e: > "print_error_and_line_number" > > How

Reporting the line number of an exception

2008-05-29 Thread sophie_newbie
I'm sure this is exceedingly simple but I can't find it anywhere. When I catch an exception I would like to report the line number of the exception as well as the error info. try: someError() except Exception, e: "print_error_and_line_number" How do I find the line number? Thanks for any