1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-23 23:51:39 +03:00

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
This commit is contained in:
Stephen Nixon 2019-02-22 10:51:59 -05:00 committed by Rasmus
parent 38a830d0a9
commit de4072d7b7
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ _*.ignore
*~
.DS_Store
nohup.out
.vscode/
build
/_*

View File

@ -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)