summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-03-14 11:12:09 +0100
committerGuido Günther <agx@sigxcpu.org>2014-03-14 11:12:09 +0100
commit256dd8261c3a47c808b90fb49026c59f3ee8baf0 (patch)
treeab7a36a50a4842a929d032476799252d208d5d2d
parentb550cd0c8c4d17b997d32c08788d42e4efe2cfbf (diff)
Don't reference f when we got ENOENT
Just return since there's nothing to parse
-rwxr-xr-xwhatmaps1
1 files changed, 1 insertions, 0 deletions
diff --git a/whatmaps b/whatmaps
index 3f82f1b..155a56c 100755
--- a/whatmaps
+++ b/whatmaps
@@ -67,6 +67,7 @@ class Process(object):
# ignore killed process
if e.errno != errno.ENOENT:
raise
+ return
for line in f:
try:
so = line.split()[5].strip()