diff --git a/plinth/modules/storage/udisks2.py b/plinth/modules/storage/udisks2.py index 7779f35e6..0a19008e9 100644 --- a/plinth/modules/storage/udisks2.py +++ b/plinth/modules/storage/udisks2.py @@ -196,7 +196,7 @@ def _mount(object_path): try: privileged.mount(block_device.preferred_device, _log_error=False) except Exception as exception: - stderr = exception.args[3].decode() + stderr = getattr(exception, 'stderr', b'').decode() if 'GDBus.Error' not in stderr: raise