summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/fuse_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-23 19:13:12 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-23 19:13:12 +0000
commitb6bfee95ea4421f54810aa860ecfb8f086211911 (patch)
tree4d103012440e572acae540fefacb62a558edb746 /obnamlib/plugins/fuse_plugin.py
parent196fd4050994e568c3085dfc2610f00d5d367b07 (diff)
downloadobnam-b6bfee95ea4421f54810aa860ecfb8f086211911.tar.gz
Replace duplicate code with call to init_root
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r--obnamlib/plugins/fuse_plugin.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py
index 43e8b203..9eb93e2b 100644
--- a/obnamlib/plugins/fuse_plugin.py
+++ b/obnamlib/plugins/fuse_plugin.py
@@ -216,16 +216,8 @@ class ObnamFuse(fuse.Fuse):
def root_refresh(self):
tracing.trace('called')
-
- try:
- self.obnam.reopen()
- generations = [gen for gen in self.obnam.repo.list_generations()
- if not self.obnam.repo.get_is_checkpoint(gen)]
- tracing.trace('found %d generations', len(generations))
- self.rootstat, self.rootlist = self.multiple_root_list(generations)
- except:
- logging.exception('Unexpected exception')
- raise
+ self.obnam.reopen()
+ self.init_root()
def get_metadata(self, path):
tracing.trace('path=%r', path)