From 830285d7bad568b32d4a86e6f0f0513981aa3964 Mon Sep 17 00:00:00 2001 From: Matt Mackall Date: Wed, 30 Nov 2011 14:57:25 -0600 Subject: [PATCH] Be more forgiving of environment errors for memory and user views --- smem | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/smem b/smem index af6ce94..7b0eb7c 100755 --- a/smem +++ b/smem @@ -316,8 +316,8 @@ def maptotals(pids): t['pids'] += 1 seen[name] = 1 totals[name] = t - except: - raise + except EnvironmentError: + continue return totals def showmaps(): @@ -366,8 +366,8 @@ def usertotals(pids): maps = pidmaps(pid) if len(maps) == 0: continue - except: - raise + except EnvironmentError: + continue user = src.piduser(pid) if user not in totals: t = dict(size=0, rss=0, pss=0, shared_clean=0,