[GRASS-SVN] r60050 - grass/trunk/gui/wxpython/timeline
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 2 16:45:53 PDT 2014
Author: annakrat
Date: 2014-05-02 16:45:53 -0700 (Fri, 02 May 2014)
New Revision: 60050
Modified:
grass/trunk/gui/wxpython/timeline/frame.py
Log:
wxGUI/timeline: fix case when there are no registered datasets
Modified: grass/trunk/gui/wxpython/timeline/frame.py
===================================================================
--- grass/trunk/gui/wxpython/timeline/frame.py 2014-05-02 21:20:32 UTC (rev 60049)
+++ grass/trunk/gui/wxpython/timeline/frame.py 2014-05-02 23:45:53 UTC (rev 60050)
@@ -393,7 +393,8 @@
for etype, maps in etypesDict.iteritems()]
for mapset, etypesDict in tDict.iteritems()]
# flatten this list
- allDatasets = reduce(lambda x, y: x + y, reduce(lambda x, y: x + y, allDatasets))
+ if allDatasets:
+ allDatasets = reduce(lambda x, y: x + y, reduce(lambda x, y: x + y, allDatasets))
for dataset in datasets:
errorMsg = _("Space time dataset <%s> not found.") % dataset
More information about the grass-commit
mailing list