saltstack/salt — comment on commit 34be8f2c4b759e4709cddd5779a604b0d88aa23d
File: salt/master.py line 545
By SEJeff:

Is it _ever_ possible that jid_dir won't already exist? If so you might try this:

except (IOError, OSError):

```OSError``` is raised when you try to write to a file in a directory that doesn't exist. Not sure if this case is ever possible, but just in case it is.