Jachym Cepicky пре 14 година
родитељ
комит
9abaf493df
1 измењених фајлова са 2 додато и 1 уклоњено
  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()