Closed JPHutchins closed 3 years ago
Thanks for the bug report, I think there is related activity to resolve this in progress, I’m glad folks are finally finding and picking this library up, I’ll try to fix this soon, looking for contributors :) best wishes
this fix is going to pypi shortly as 1.0.4
I am using this excellent library as a dependency and the parent library seems to be calling the
__repr__
of BaseClient defined in client_base.py: https://github.com/jquast/telnetlib3/blob/97b5705774753ba801bf1d7867c846bb849aa631/telnetlib3/client_base.py#L201-L207 The trouble is that it seems to be calling for this__repr__
after disconnect andself._transport
has been redefined as None: https://github.com/jquast/telnetlib3/blob/97b5705774753ba801bf1d7867c846bb849aa631/telnetlib3/client_base.py#L99-L100 Which causes an AttributeError when trying to get _extra from _transport:I can resolve this simply by:
So I would love to know if we can merge contributors preferred solution or if I should just handle this upstream or by monkey patching the repr.