diff options
author | Stephen Nixon <swr410@gmail.com> | 2019-02-22 18:51:59 +0300 |
---|---|---|
committer | Rasmus <rasmus@notion.se> | 2019-02-22 18:51:59 +0300 |
commit | de4072d7b76375885c7a89bc755caf9d81ef4431 (patch) | |
tree | 732a9070fb80feedca4999160dd4d187530b607f | |
parent | 38a830d0a968c1c24a29cfc9ff4f1bf38b3705c6 (diff) | |
download | inter-de4072d7b76375885c7a89bc755caf9d81ef4431.tar.xz |
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
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | docs/lab/serve.py | 2 |
2 files changed, 2 insertions, 1 deletions
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) |