Jachym Cepicky hace 14 años
padre
commit
9abaf493df
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      OWS.py

+ 2 - 1
OWS.py

@@ -188,7 +188,8 @@ class OWS:
 
         # nothing has changed in the capabilities document since last
         # request ?
-        if os.path.exists(os.path.join(self.cachedir,"capabilities.xml")):
+        if os.path.exists(os.path.join(self.cachedir,"capabilities.xml")) and\
+            "_capabilities" in dir(self.capabilities):
             oldCapsFile = open(os.path.join(self.cachedir,"capabilities.xml"))
             oldCaps = oldCapsFile.read()
             oldCapsFile.close()