This commit is contained in:
Kovid Goyal 2010-10-19 19:06:31 -06:00
parent 5a8e4b2174
commit 1c2ff97a5d

View File

@ -740,12 +740,17 @@ class Device(DeviceConfig, DevicePlugin):
umount(d) umount(d)
except: except:
pass pass
failures = False
for d in drives: for d in drives:
try: try:
eject(d) eject(d)
except Exception, e: except Exception, e:
print 'Udisks eject call for:', d, 'failed:' print 'Udisks eject call for:', d, 'failed:'
print '\t', e print '\t', e
failures = True
if not failures:
return
for drive in drives: for drive in drives:
cmd = 'calibre-mount-helper' cmd = 'calibre-mount-helper'