Skip to content

Commit

Permalink
More efforts to fix the WindowsError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarthur committed Mar 2, 2017
1 parent dc48064 commit 2eaa9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
try:
from exceptions import WindowsError
except:
class WindowsError(OSError): pass
class WindowsError(IOError): pass

#if not getattr(__builtins__, "WindowsError", None):
# class WindowsError(IOError):
Expand Down Expand Up @@ -430,5 +430,5 @@ def loadTracksFromPath(path):
msg = "Loading {0} track files in {1}".format(len(trackfiles), path)
log.info(msg)
return loadTracksFromFiles(sorted(trackfiles))
except (IOError, WindowsError):
except (IOError, OSError, WindowsError):
raise IOError("Path {0} does not exist".format(path))

0 comments on commit 2eaa9c4

Please sign in to comment.