]> git.llucax.com Git - software/pymin.git/commitdiff
Bugfix: raise a KeyError, don't return it.
authorLeandro Lucarella <llucax@gmail.com>
Thu, 15 Nov 2007 12:58:57 +0000 (09:58 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 15 Nov 2007 12:58:57 +0000 (09:58 -0300)
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