summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-08-13 10:36:25 +0300
committerLars Wirzenius <liw@liw.fi>2016-08-13 10:36:25 +0300
commit65e6015c90a59e895939f3c2273efd5fccf9fdb7 (patch)
treeb57b2b17b69ab62903d7b88d37413d87df6c2081
parentab5e116e6dc5689ab3020951d5e5c84ceadc11f7 (diff)
downloadobnam-65e6015c90a59e895939f3c2273efd5fccf9fdb7.tar.gz
Make sure .mount_points always exists
-rw-r--r--obnamlib/plugins/one_file_system_plugin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/obnamlib/plugins/one_file_system_plugin.py b/obnamlib/plugins/one_file_system_plugin.py
index 7b584c88..22d7371f 100644
--- a/obnamlib/plugins/one_file_system_plugin.py
+++ b/obnamlib/plugins/one_file_system_plugin.py
@@ -38,6 +38,7 @@ class OneFileSystemPlugin(obnamlib.ObnamPlugin):
self.app.hooks.add_callback('backup-exclude', self.exclude)
def load_mount_points(self):
+ self.mount_points = []
try:
with open('/proc/mounts', 'r') as f:
self.mount_points = self.parse_proc_mounts(f)