mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
storage: Adjust to changes in privileged errors
Tests: - Edit auto-mounting to try mounting an already mounted device. In a VM, during service startup, notice the warning about failure to auto-mount as device is already mounted. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
cf4f29e848
commit
969d9311ab
@ -196,7 +196,7 @@ def _mount(object_path):
|
|||||||
try:
|
try:
|
||||||
privileged.mount(block_device.preferred_device, _log_error=False)
|
privileged.mount(block_device.preferred_device, _log_error=False)
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
stderr = exception.args[3].decode()
|
stderr = getattr(exception, 'stderr', b'').decode()
|
||||||
if 'GDBus.Error' not in stderr:
|
if 'GDBus.Error' not in stderr:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user