Revert "provision: Give concrete NFS error message on older OSX versions."

This reverts commit 073ecaac66 (#9365).

This exception handler was overly broad in catching all `OSError`s,
and it made debugging harder by hiding the actual exception.
Furthermore, we no longer use NFS (#12963), and we’re now getting
reports of Windows users running into this message.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-09-09 13:06:07 -07:00 committed by Tim Abbott
parent 574c35c0b8
commit 17192ed46b
1 changed files with 1 additions and 7 deletions

View File

@ -16,13 +16,7 @@ def generate_zulip_bots_static_files() -> None:
bots_dir = 'static/generated/bots'
if os.path.isdir(bots_dir):
# delete old static files, they could be outdated
try:
shutil.rmtree(bots_dir)
except OSError:
print("There was a permission error with Vagrant's NFS file sharing on old versions of " +
"OSX. You can fix this by upgrading to the latest OSX High Sierra, or work around it " +
"by giving read/write permissions to your /zulip folder to everyone.")
sys.exit(1)
shutil.rmtree(bots_dir)
os.makedirs(bots_dir, exist_ok=True)