Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Catch OSError instead of WindowsError.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPablomr committed Sep 27, 2016
1 parent 789f108 commit ddc4913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftplugin/fsharpvim.py
Expand Up @@ -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()
Expand Down

0 comments on commit ddc4913

Please sign in to comment.