mirror of
https://github.com/upa/mscp.git
synced 2026-03-06 23:57:33 +08:00
fix: when msg_fd is 0, use STDOUT_FILENO
This commit is contained in:
@@ -71,6 +71,9 @@ class mscp:
|
||||
self.state = STATE_INIT
|
||||
|
||||
def __str__(self):
|
||||
if not hasattr(self, "state"):
|
||||
# this instance failed on mscp_init
|
||||
return "mscp:{}:init-failed"
|
||||
return "mscp:{}:{}".format(self.remote, self.__state2str())
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user