From 9ba327f0dd1f6c86d92d6aee6ee11cbe6ef09949 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 31 Jul 2016 15:06:20 +0530 Subject: [PATCH] users: Fix issue with removing temp file --- plinth/action_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index 4285147e9..a680efad5 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -443,6 +443,6 @@ Owners: {package} subprocess.run(['dpkg-reconfigure', package], env=env) try: - os.remove(override_file) + os.remove(override_file.name) except OSError: pass