[GRASS-SVN] r73403 - grass-addons/grass7/imagery/i.modis/libmodis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 25 15:14:09 PDT 2018


Author: lucadelu
Date: 2018-09-25 15:14:09 -0700 (Tue, 25 Sep 2018)
New Revision: 73403

Modified:
   grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py
Log:
working on #3659

Modified: grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py	2018-09-25 21:10:45 UTC (rev 73402)
+++ grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py	2018-09-25 22:14:09 UTC (rev 73403)
@@ -350,9 +350,9 @@
     def __init__(self):
         self.proj = get_proj()
         self.val = self.proj['proj']
-        if self.proj['datum']:
+        try:
             self.dat = self.proj['datum']
-        else:
+        except:
             self.dat = 'none'
         self.projections = {'laea': 'LA', 'll': 'GEO', 'lcc': 'LCC',
                             'merc': 'MERCAT', 'polar': 'PS', 'utm': 'UTM',



More information about the grass-commit mailing list