mirror of https://github.com/zulip/zulip.git
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:
parent
574c35c0b8
commit
17192ed46b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue