[GRASS-SVN] r70002 - grass/branches/releasebranch_7_0/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 14:55:10 PST 2016


Author: martinl
Date: 2016-12-04 14:55:10 -0800 (Sun, 04 Dec 2016)
New Revision: 70002

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

Modified: grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py	2016-12-04 22:54:05 UTC (rev 70001)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py	2016-12-04 22:55:10 UTC (rev 70002)
@@ -119,7 +119,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