[GRASS-SVN] r64991 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 5 18:39:52 PDT 2015
Author: annakrat
Date: 2015-04-05 18:39:52 -0700 (Sun, 05 Apr 2015)
New Revision: 64991
Modified:
grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: catch error due to Ghostscript missing or not on path
Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py 2015-04-05 23:19:56 UTC (rev 64990)
+++ grass/trunk/gui/wxpython/psmap/frame.py 2015-04-06 01:39:52 UTC (rev 64991)
@@ -350,10 +350,10 @@
import types
im.load = types.MethodType(loadPSForWindows, im)
im.save(self.imgName, format = 'PNG')
- except IOError as e:
+ except (IOError, OSError) as e:
del busy
dlg = HyperlinkDialog(self, title=_("Preview not available"),
- message=_("Preview is not available probably due to missing Ghostscript."),
+ message=_("Preview is not available probably because Ghostscript is not installed or not on PATH."),
hyperlink='http://trac.osgeo.org/grass/wiki/CompileOnWindows#Ghostscript',
hyperlinkLabel=_("Please follow instructions on GRASS Trac Wiki."))
dlg.ShowModal()
More information about the grass-commit
mailing list