[GRASS-dev] Re: [GRASS-user] grass-6.4.0RC5 and wx-python

Martin Landa landa.martin at gmail.com
Mon Oct 12 16:20:50 EDT 2009


Hi,

2009/10/12 Glynn Clements <glynn at gclements.plus.com>:
> Obviously, if the "import wxversion" fails, wxversion.VersionError
> isn't going to resolve.
>
> FWIW, the same problem exists in trunk.
>
> The code should probably look something like:
>
>    try:
>        import wxversion
>        try:
>            wxversion.select(str(minVersion[0]) + '.' + str(minVersion[1]))
>            ...
>        except (ValueError, wxversion.VersionError), e:
>            ...
>
>    except ImportError, e:

right, hopefully fixed r39494.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list