[GRASS-SVN] r69848 - grass/trunk/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 19 03:20:55 PST 2016
Author: martinl
Date: 2016-11-19 03:20:55 -0800 (Sat, 19 Nov 2016)
New Revision: 69848
Modified:
grass/trunk/scripts/r.in.wms/wms_base.py
Log:
r.in.wms crashes if server does not exist (see #3212)
Modified: grass/trunk/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_base.py 2016-11-17 10:27:07 UTC (rev 69847)
+++ grass/trunk/scripts/r.in.wms/wms_base.py 2016-11-19 11:20:55 UTC (rev 69848)
@@ -6,7 +6,7 @@
- wms_base::GRASSImporter
- wms_base::WMSDriversInfo
-(C) 2012-2013 by the GRASS Development Team
+(C) 2012-2016 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -246,10 +246,13 @@
_("Authorization failed to <%s> when fetching capabilities") %
options['url'])
else:
- msg = _("Unable to fetch capabilities from <%s>: %s") % (options['url'], e)
+ msg = _("Unable to fetch capabilities from <{}>. Reason: ").format(
+ options['url'])
if hasattr(e, 'reason'):
- msg += _("\nReason: ") + e.reason
+ msg += '{}'.format(e.reason)
+ else:
+ msg += '{}'.format(e)
grass.fatal(msg)
More information about the grass-commit
mailing list