Merge pull request #51799 from s0undt3ch/2019.2

Catch attribute error
This commit is contained in:
Daniel Wozniak 2019-03-05 02:38:07 -07:00 committed by GitHub
commit 08e3956781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1030,7 +1030,13 @@ class RemoteClient(Client):
return
self._closing = True
self.channel.close()
channel = None
try:
channel = self.channel
except AttributeError:
pass
if channel is not None:
channel.close()
def get_file(self,
path,