diff options
-rw-r--r-- | src/wikipediafs/fs.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wikipediafs/fs.py b/src/wikipediafs/fs.py index 42c94e5..0c5b856 100644 --- a/src/wikipediafs/fs.py +++ b/src/wikipediafs/fs.py @@ -110,8 +110,13 @@ class ArticleDir: return txt def write_to(self, path, txt): - art = self.get_art(path); - return art.set(txt) + art = self.get_art(path) + ret = art.set(txt) + if (ret == False): + self.set_cookie_string(1) + ret = art.set(txt) + + return ret def size(self, path): LOGGER.debug("FSdir size %s" % (path)) |