diff options
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-x | lib/isodumper.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index bd8802b..32f311c 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -129,9 +129,10 @@ class UDisks2(object): fs.Lock({}) else: iface = self.bus.get(self.SERVICE, block['path']) - fs = iface[self.SERVICE + '.Filesystem'] - if fs.MountPoints: # partition is mounted - fs.Unmount({}) + if self.SERVICE + '.Filesystem' in objects[block['path']]: + fs = iface[self.SERVICE + '.Filesystem'] + if fs.MountPoints: # partition is mounted + fs.Unmount({}) return True, "" def eject(self, device): |