[Pywps-commits] r364 - trunk/pywps/Wps
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jun 5 14:48:54 CEST 2007
Author: jachym
Date: 2007-06-05 14:48:54 +0200 (Tue, 05 Jun 2007)
New Revision: 364
Modified:
trunk/pywps/Wps/wpsexceptions.py
Log:
bugfix in exceptions
Modified: trunk/pywps/Wps/wpsexceptions.py
===================================================================
--- trunk/pywps/Wps/wpsexceptions.py 2007-06-05 12:45:34 UTC (rev 363)
+++ trunk/pywps/Wps/wpsexceptions.py 2007-06-05 12:48:54 UTC (rev 364)
@@ -80,7 +80,10 @@
class NoApplicableCode(WPSException):
def __init__(self,value=None):
self.code = "NoApplicableCode"
- self.locator = value
+ try:
+ self.locator = str(value)
+ except:
+ self.locator = None
self.make_xml()
self.ExceptionReport.appendChild(self.document.createComment(
repr(self.locator)))
More information about the Pywps-commits
mailing list