From 3aa3d9636016594e60e0bc41331a7ec7cb8ed945 Mon Sep 17 00:00:00 2001 From: Manuel Riel <3916435+m3nu@users.noreply.github.com> Date: Tue, 11 Jun 2019 08:19:49 +0800 Subject: [PATCH] Ignore Python processes owned by other users when finding mount points. #273 (#289) --- src/vorta/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vorta/utils.py b/src/vorta/utils.py index 02fb2750..cedbaf03 100644 --- a/src/vorta/utils.py +++ b/src/vorta/utils.py @@ -245,8 +245,9 @@ def get_mount_points(repo_url): mount_point = proc.cmdline()[idx + 1] mount_points[archive_name] = mount_point break - except psutil.ZombieProcess: + except (psutil.ZombieProcess, psutil.AccessDenied): # Getting process details may fail (e.g. zombie process on macOS) + # or because the process is owned by another user. # Also see https://github.com/giampaolo/psutil/issues/783 continue