From: Leandro Lucarella Date: Sun, 25 May 2008 02:28:53 +0000 (-0300) Subject: Fix procman.ProcessInfo.__repr__() (refs #11). X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/ecde8e32795abb68141bd76f528f9be778ceab4f?ds=inline Fix procman.ProcessInfo.__repr__() (refs #11). Callback could be "dereferenced" even being None. --- 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: