[GRASS-SVN] r73441 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 27 13:28:10 PDT 2018
Author: lucadelu
Date: 2018-09-27 13:28:10 -0700 (Thu, 27 Sep 2018)
New Revision: 73441
Modified:
grass/trunk/lib/python/temporal/univar_statistics.py
Log:
temporal lib: improved message if the are no maps in the request, wrong query or wrong period
Modified: grass/trunk/lib/python/temporal/univar_statistics.py
===================================================================
--- grass/trunk/lib/python/temporal/univar_statistics.py 2018-09-27 20:26:12 UTC (rev 73440)
+++ grass/trunk/lib/python/temporal/univar_statistics.py 2018-09-27 20:28:10 UTC (rev 73441)
@@ -59,9 +59,11 @@
if not rows:
dbif.close()
- gscript.fatal(_("Space time %(sp)s dataset <%(i)s> is empty") % {
- 'sp': sp.get_new_map_instance(None).get_type(),
- 'i': sp.get_id()})
+ err = "Space time %(sp)s dataset <%(i)s> is empty"
+ if where:
+ err += " or where condition is wrong"
+ gscript.fatal(_(err) % {'sp': sp.get_new_map_instance(None).get_type(),
+ 'i': sp.get_id()})
if no_header is False:
string = ""
More information about the grass-commit
mailing list