Perhaps put this in try-except. According to http://docs.python.org/2/library/os.html#os.umask the umask() function is supported on Unix and Windows (perhaps that is all supported Salt platforms?).

In any case handling an OSError in the same way as _chugid() could not hurt?