aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-07-21 21:59:52 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-07-21 21:59:52 -0700
commit8eff0bb9e23690bb8a87453a4a6d4d415b9e1a95 (patch)
tree4b2ecdf36896360d53cd0183f98b8484cc980a79 /server.py
parentfc295ac93d0ad6b0272aa94f2d2ea44002ecbc48 (diff)
downloadyt-local-8eff0bb9e23690bb8a87453a4a6d4d415b9e1a95.tar.lz
yt-local-8eff0bb9e23690bb8a87453a4a6d4d415b9e1a95.tar.xz
yt-local-8eff0bb9e23690bb8a87453a4a6d4d415b9e1a95.zip
Delete obsolete files
Diffstat (limited to 'server.py')
-rw-r--r--server.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/server.py b/server.py
index 24303ec..bf85a35 100644
--- a/server.py
+++ b/server.py
@@ -104,24 +104,6 @@ def site_dispatch(env, start_response):
else: # did not break
yield error_code('404 Not Found', start_response)
return
- '''
- except http_errors.Code200 as e: # Raised in scenarios where a simple status message is to be returned, such as a terminated channel
- start_response('200 OK', ())
- yield str(e).encode('utf-8')
-
- except http_errors.Error404 as e:
- start_response('404 Not Found', ())
- yield str(e).encode('utf-8')
-
- except urllib.error.HTTPError as e:
- start_response(str(e.code) + ' ' + e.reason, ())
- yield b'While fetching url, the following error occured:\n' + str(e).encode('utf-8')
-
- except socket.error as e:
- start_response('502 Bad Gateway', ())
- print(str(e))
- yield b'502 Bad Gateway'
- '''
except Exception:
start_response('500 Internal Server Error', ())
yield b'500 Internal Server Error'