]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/procman.py
Bugfix: raise a KeyError, don't return it.
[software/pymin.git] / pymin / procman.py
index 0330e23542886dc0880e351f0538b01d88b4fe0a..12c269cb564146f97a306cc320a4222e5b18297a 100644 (file)
@@ -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