From de4072d7b76375885c7a89bc755caf9d81ef4431 Mon Sep 17 00:00:00 2001 From: Stephen Nixon Date: Fri, 22 Feb 2019 10:51:59 -0500 Subject: [PATCH] Serve symlink patch: fix error exception to serve lab if symlink exists (#130) * fix error exception to serve lab if symlink exists * ignore personal VS Code workspace settings --- .gitignore | 1 + docs/lab/serve.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fe5c4df72..df4863101 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ _*.ignore *~ .DS_Store nohup.out +.vscode/ build /_* diff --git a/docs/lab/serve.py b/docs/lab/serve.py index afc96854a..91fc12cb0 100755 --- a/docs/lab/serve.py +++ b/docs/lab/serve.py @@ -26,7 +26,7 @@ class HTTPServer(http.server.HTTPServer): labdir = abspath(dirname(__file__)) try: os.symlink('../../build/fonts', pjoin(labdir, 'fonts')) -except FileExistsError: +except OSError: pass addr = ("localhost", 3003)