From ecde8e32795abb68141bd76f528f9be778ceab4f Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 24 May 2008 23:28:53 -0300 Subject: [PATCH] Fix procman.ProcessInfo.__repr__() (refs #11). Callback could be "dereferenced" even being None. --- pymin/procman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymin/procman.py b/pymin/procman.py index 898a4ea..269117b 100644 --- a/pymin/procman.py +++ b/pymin/procman.py @@ -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: -- 2.43.0