[Greater-commits] r314 - trunk/GREAT-ER/Greater/UI
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 30 11:26:14 CEST 2011
Author: aheinecke
Date: 2011-06-30 11:26:14 +0200 (Thu, 30 Jun 2011)
New Revision: 314
Modified:
trunk/GREAT-ER/Greater/UI/application.py
Log:
Do not crash if there is no simulation server
Modified: trunk/GREAT-ER/Greater/UI/application.py
===================================================================
--- trunk/GREAT-ER/Greater/UI/application.py 2011-06-30 09:25:34 UTC (rev 313)
+++ trunk/GREAT-ER/Greater/UI/application.py 2011-06-30 09:26:14 UTC (rev 314)
@@ -72,7 +72,7 @@
# They differ for GNU/Linux/Win32.
elif error[0] == 'GreaterModelError':
sim_server = app.Session().SimulationServerConnection()
- if not sim_server.UseServer():
+ if not sim_server or not sim_server.UseServer():
scheduler = 'local running scheduler'
else:
scheduler = 'scheduler running '\
More information about the Greater-commits
mailing list