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

Commit

Permalink
Merge pull request #56 from JPablomr/master
Browse files Browse the repository at this point in the history
Catch OSError instead of WindowsError.
  • Loading branch information
kjnilsson committed Sep 28, 2016
2 parents 789f108 + ddc4913 commit c995ccc
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 c995ccc

Please sign in to comment.