From: Leandro Lucarella Date: Thu, 15 Nov 2007 12:58:57 +0000 (-0300) Subject: Bugfix: raise a KeyError, don't return it. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/75e67012c298ea163108ca79fc9deed1227fa8ff?ds=inline;hp=--cc Bugfix: raise a KeyError, don't return it. --- 75e67012c298ea163108ca79fc9deed1227fa8ff 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