[GRASS-SVN] r66648 - grass-addons/grass7/raster/r.modis/libmodis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 29 01:23:59 PDT 2015
Author: lucadelu
Date: 2015-10-29 01:23:59 -0700 (Thu, 29 Oct 2015)
New Revision: 66648
Modified:
grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
Log:
r.modis: fix bug for old mapset without epsg file
Modified: grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py 2015-10-28 20:01:21 UTC (rev 66647)
+++ grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py 2015-10-29 08:23:59 UTC (rev 66648)
@@ -36,7 +36,10 @@
listproj = gproj.split('\n')
listproj.remove('-PROJ_INFO-------------------------------------------------')
listproj.remove('-PROJ_UNITS------------------------------------------------')
- listproj.remove('-PROJ_EPSG-------------------------------------------------')
+ try:
+ listproj.remove('-PROJ_EPSG-------------------------------------------------')
+ except Exception:
+ pass
listproj.remove('')
proj = {}
for i in listproj:
More information about the grass-commit
mailing list