[GRASS-SVN] r64992 - grass/branches/releasebranch_7_0/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 5 20:23:42 PDT 2015


Author: annakrat
Date: 2015-04-05 20:23:42 -0700 (Sun, 05 Apr 2015)
New Revision: 64992

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: catch error due to Ghostscript missing or not on path (merge from trunk, r64991)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/psmap/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/psmap/frame.py	2015-04-06 01:39:52 UTC (rev 64991)
+++ grass/branches/releasebranch_7_0/gui/wxpython/psmap/frame.py	2015-04-06 03:23:42 UTC (rev 64992)
@@ -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