#1383: wxGUI crashes if settings file .grasswx6 does not exist -----------------------------+---------------------------------------------- Reporter: mmetz | Owner: grass-dev@… Type: defect | Status: new Priority: blocker | Milestone: 6.4.2 Component: wxGUI | Version: svn-releasebranch64 Keywords: wxGUI, settings | Platform: All Cpu: All | -----------------------------+---------------------------------------------- The wxGUI crashes quite ungracefully if .grasswx6 does not exist
{{{ File "/home/metz/src/grass-6.4.svn/dist.x86_64-unknown-linux- gnu/etc/wxpython/gui_modules/preferences.py", line 698, in _readFile file = open(filename, "r") IOError: [Errno 2] No such file or directory: '/home/metz/.grasswx6' Error in GUI startup. If necessary, please report this error to the GRASS developers. }}} The failing function _readFile does not make sense to me because it tries to read the file even if it could not be opened. A simple test if the file exists fixes the problem. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1383> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev