[GRASS-SVN] r35717 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 1 12:53:22 EST 2009
Author: martinl
Date: 2009-02-01 12:53:22 -0500 (Sun, 01 Feb 2009)
New Revision: 35717
Modified:
grass/trunk/gui/wxpython/gui_modules/profile.py
Log:
attempt to fix trac #472
(merge from relbr64, r35715)
Modified: grass/trunk/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/profile.py 2009-02-01 17:51:19 UTC (rev 35716)
+++ grass/trunk/gui/wxpython/gui_modules/profile.py 2009-02-01 17:53:22 UTC (rev 35717)
@@ -28,14 +28,15 @@
import wx.lib.colourselect as csel
try:
+ import numpy
import wx.lib.plot as plot
-except:
+except ImportError:
msg= """
- This module requires the NumPy module,
- which could not be imported. It probably is not installed
- (it's not part of the standard Python distribution). See the
- Numeric Python site (http://numpy.scipy.org) for information on
- downloading source or binaries."""
+ This module requires the NumPy module, which could not be
+ imported. It probably is not installed (it's not part of the
+ standard Python distribution). See the Numeric Python site
+ (http://numpy.scipy.org) for information on downloading source or
+ binaries."""
print >> sys.stderr, "profile.py: " + msg
import globalvar
More information about the grass-commit
mailing list