summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2010-04-14 19:10:05 +0000
committerjortel <devnull@localhost>2010-04-14 19:10:05 +0000
commit02a160b70dd07323881494ea2e66b68188933a44 (patch)
treef238e6cde8815f96e245dca514b5105a050d5efc
parent25c156e1a13c85ed29ccf079c833957fd988336e (diff)
downloadsuds-02a160b70dd07323881494ea2e66b68188933a44.tar.gz
Fix checkversion() for cases when the cache directory does not exist.
-rw-r--r--suds/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/suds/cache.py b/suds/cache.py
index a3a53cd..801c23c 100644
--- a/suds/cache.py
+++ b/suds/cache.py
@@ -268,14 +268,14 @@ class FileCache(Cache):
path = os.path.join(self.location, 'version')
try:
- f = open(path)
+ f = self.open(path)
version = f.read()
f.close()
if version != suds.__version__:
raise Exception()
except:
self.clear()
- f = open(path, 'w')
+ f = self.open(path, 'w')
f.write(suds.__version__)
f.close()