Commit 1dff1d0e authored by rgaudin's avatar rgaudin
Browse files

Fixed a bug where unmount would fail raising a PermissionError on mount_point delete

parent f51a3934
2.0-rc11
* Fixed an unmount issue on Linux
2.0-rc10
* Fixed wikifundi config regression
......
......@@ -401,7 +401,7 @@ def unmount_data_partition(mount_point, device, logger):
'--block-device', device, udisks_nou], logger)
try:
os.rmdir(mount_point)
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
pass
# delete the loop device (might have already been deletec)
subprocess_pretty_call(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment