From a84f5d6930950cd0cf832e2eb4c48e434e1f7239 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 28 Mar 2019 14:33:51 -0700 Subject: [PATCH] storage: Don't log error when checking if partition is expandable Without the patch, every time the storage page is visited an error is logged. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/storage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/storage/__init__.py b/plinth/modules/storage/__init__.py index 9d6555be2..7de846861 100644 --- a/plinth/modules/storage/__init__.py +++ b/plinth/modules/storage/__init__.py @@ -188,8 +188,8 @@ def is_expandable(device): return False try: - output = actions.superuser_run('storage', - ['is-partition-expandable', device]) + output = actions.superuser_run( + 'storage', ['is-partition-expandable', device], log_error=False) except actions.ActionError: return False