Ignore OSError instead of FileNotFoundError

remotes/origin/master
Marco Hinz 7 years ago
parent 13808fd5ec
commit 957082771b
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -49,7 +49,8 @@ class Neovim():
self.server = attach('tcp', address=ip, port=int(port))
else:
self.server = attach('socket', path=self.address)
except FileNotFoundError:
except OSError:
# Ignore invalid addresses.
pass
def is_attached(self, silent=False):

Loading…
Cancel
Save