]> git.llucax.com Git - software/pymin.git/commitdiff
Fix procman.ProcessInfo.__repr__() (refs #11).
authorLeandro Lucarella <llucax@gmail.com>
Sun, 25 May 2008 02:28:53 +0000 (23:28 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 25 May 2008 02:28:53 +0000 (23:28 -0300)
Callback could be "dereferenced" even being None.

pymin/procman.py

index 898a4ea7a391636a8833d4fd80218d9a271a5d58..269117b7b202196a99871ff8b042e179a4a8827e 100644 (file)
@@ -68,7 +68,7 @@ class ProcessInfo:
             pid = self.process.pid
         return 'ProcessInfo(name=%s, pid=%s command=%s, persist=%s, cb=%s)' % (
                     self.name, pid, self.command, self.persist,
-                    self.callback.__name__)
+                    self.callback and self.callback.__name__ or None)
 
 class ProcessManager: