---
 utils.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/utils.py b/utils.py
index aad1b73..837c9b6 100644
--- a/utils.py
+++ b/utils.py
@@ -58,6 +58,11 @@ def get_process_info(pid):
     if not pid:
         return
 
+    try:
+        pid = int(pid)
+    except ValueError, e:
+        return
+        
     # Maybe true if /proc isn't mounted, or not Linux ... or something.
     if (not os.path.exists("/proc/%d/status" % pid) or
         not os.path.exists("/proc/stat") or
-- 
1.7.2.1

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to