From 02a160b70dd07323881494ea2e66b68188933a44 Mon Sep 17 00:00:00 2001 From: jortel Date: Wed, 14 Apr 2010 19:10:05 +0000 Subject: Fix checkversion() for cases when the cache directory does not exist. --- suds/cache.py | 4 ++-- 1 file 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() -- cgit v1.2.1