From 75e67012c298ea163108ca79fc9deed1227fa8ff Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 15 Nov 2007 09:58:57 -0300 Subject: [PATCH] Bugfix: raise a KeyError, don't return it. --- pymin/procman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymin/procman.py b/pymin/procman.py index 0330e23..12c269c 100644 --- a/pymin/procman.py +++ b/pymin/procman.py @@ -131,7 +131,7 @@ class ProcessManager: else: # is a pid if name in self.pidmap: return self.pidmap[name] - return KeyError, name + raise KeyError, name def has(self, name): if isinstance(name, basestring): # is a name -- 2.43.0