Attempt reconnect after failed stream.write

I feel like there should be a more pythonic way to do this than to nest try-except statements but nothing I've found on the internet is any better. Any ideas @rtjoseph11?
I was thinking doing something more like if self.stream.closed(): self.connect() here