Would it be better to check if `e.errno == errno.EACCES`?