[GRASS-SVN] r65144 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 26 14:48:31 PDT 2015
Author: krejcmat
Date: 2015-04-26 14:48:31 -0700 (Sun, 26 Apr 2015)
New Revision: 65144
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
Log:
rm grass.fatal
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-04-26 21:28:55 UTC (rev 65143)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-04-26 21:48:31 UTC (rev 65144)
@@ -320,16 +320,16 @@
if statFce == 'mode':
if self.roundMode is None:
- grass.fatal('Value "round" is missing.')
+ grass.warning('Value "round" is missing.')
if statFce == 'quantile':
if self.quantile is None:
- grass.fatal('Value "quentile" is missing.')
+ grass.warning('Value "quentile" is missing.')
if self.type == 'fromDryWin':
if self.pathToFile is None:
- grass.fatal('Dry interval is not defined.')
+ grass.warning('Dry interval is not defined.')
if self.type == 'values':
if self.pathToFile is None:
- grass.fatal('Baseline values are not defined.')
+ grass.warning('Baseline values are not defined.')
print self.pathToFile
@@ -514,7 +514,7 @@
io2.writelines(nameList)
io2.close()
except IOError as (errno, strerror):
- grass.fatal('Cannot write temporal registration file %s' % os.path.join(self.path, TMPname))
+ grass.warning('Cannot write temporal registration file %s' % os.path.join(self.path, TMPname))
grass.message('creating time windows-done')
@@ -630,7 +630,7 @@
f = open(baseline.pathToFile, 'r')
except IOError as (errno, strerror):
print baseline.pathToFile
- grass.fatal('Path to file with dry-window definiton not exist; %s' % baseline.pathTofile)
+ grass.warning('Path to file with dry-window definiton not exist; %s' % baseline.pathTofile)
for line in f:
st += line.replace("\n", "")
@@ -1194,7 +1194,7 @@
try:
f = open(os.path.join(self.database.pathworkSchemaDir, "l_timewindow"), 'r')
except:
- grass.fatal('Cannot connect tables(time-windows) to vector layer')
+ grass.warning('Cannot connect tables(time-windows) to vector layer')
layerNum = 0
for win in f.read().splitlines():
layerNum += 1
@@ -1404,7 +1404,7 @@
overwrite=True)
if grass.run_command('db.connect', driver="pg", database=self.dbName,overwrite=True) != 0:
- grass.fatal("Unable to connect to the database by grass driver.")
+ grass.warning("Unable to connect to the database by grass driver.")
def pyConnection(self):
@@ -1421,7 +1421,7 @@
self.connection = pg(**conninfo)
except psycopg2.OperationalError, e:
- grass.fatal("Unable to connect to the database <%s>. %s" % (self.dbName, e))
+ grass.warning("Unable to connect to the database <%s>. %s" % (self.dbName, e))
def firstPreparation(self):
if not isAttributExist(self.connection, 'public', 'link', 'lenght'):
More information about the grass-commit
mailing list