[GRASS-SVN] r70001 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 14:54:05 PST 2016


Author: martinl
Date: 2016-12-04 14:54:05 -0800 (Sun, 04 Dec 2016)
New Revision: 70001

Modified:
   grass/trunk/lib/python/temporal/mapcalc.py
Log:
t.rast.mapcalc: TypeError: object of type 'NoneType' has no len() (see #3214)

Modified: grass/trunk/lib/python/temporal/mapcalc.py
===================================================================
--- grass/trunk/lib/python/temporal/mapcalc.py	2016-12-04 22:51:50 UTC (rev 70000)
+++ grass/trunk/lib/python/temporal/mapcalc.py	2016-12-04 22:54:05 UTC (rev 70001)
@@ -123,7 +123,7 @@
                                              dbif=dbif)
 
             # In case samples are not found
-            if not list and len(list) == 0:
+            if not list or len(list) == 0:
                 dbif.close()
                 msgr.message(_("No samples found for map calculation"))
                 return 0



More information about the grass-commit mailing list