]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/procman.py
Add an example of regular attributes usage with a ValidatedClass
[software/pymin.git] / 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: