[Pywps-commits] r659 - trunk/pywps/Wps
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 1 11:09:07 CEST 2008
Author: jachym
Date: 2008-10-01 11:09:06 +0200 (Wed, 01 Oct 2008)
New Revision: 659
Modified:
trunk/pywps/Wps/GetCapabilities.py
Log:
try-except block for response initialization
Modified: trunk/pywps/Wps/GetCapabilities.py
===================================================================
--- trunk/pywps/Wps/GetCapabilities.py 2008-10-01 08:47:44 UTC (rev 658)
+++ trunk/pywps/Wps/GetCapabilities.py 2008-10-01 09:09:06 UTC (rev 659)
@@ -38,7 +38,11 @@
self
wps - parent WPS instance
"""
- Response.__init__(self,wps)
+ try:
+ Response.__init__(self,wps)
+ except Exception, e:
+ self.cleanEnv()
+ raise self.wps.exceptions.NoApplicableCode(e.message)
try:
self.template = self.templateManager.prepare(self.templateFile)
More information about the Pywps-commits
mailing list