This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Current gdb python errors on python-2.4
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Julian Smith <jules at op59 dot net>
- Cc: gdb at sourceware dot org
- Date: Tue, 11 Jun 2013 14:37:40 +0100
- Subject: Re: Current gdb python errors on python-2.4
- References: <20130609035926 dot 40bad3bb dot jules at op59 dot net> <51B72757 dot 9050902 at redhat dot com>
On 11/06/13 14:34, Phil Muldoon wrote:
> The only way (I know) to get exceptions to work for all versions of
> Python is to do something like:
>
> except Exception:
> e = sys.exc_info[1]
>
Oops, typo. I mean:
except Exception:
e = sys.exc_info()[1]
Cheers,
Phil