diff --git a/ftplugin/fsharpvim.py b/ftplugin/fsharpvim.py index d4ce576..f9f344c 100644 --- a/ftplugin/fsharpvim.py +++ b/ftplugin/fsharpvim.py @@ -66,12 +66,12 @@ def __init__(self, dir, debug = False): hidewin.addopt(opts) try: self.p = Popen(command, **opts) - except WindowsError: + except OSError: try: self.p = Popen(command[1:], **opts) - except WindowsError as error: - msg = "Windows Error encountered while trying to execute %s: %s" % (command[1:], error) - raise WindowsError(msg) + except OSError as error: + msg = "Error encountered while trying to execute %s: %s" % (command[1:], error) + raise OSError(msg) self.debug = debug self.switch_to_json()