forked from indymedia/epicyon
Handle 404 errors
parent
db38a6388c
commit
7e43a00c4d
|
@ -171,7 +171,11 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self.send_header('Content-Type', 'text/html; charset=utf-8')
|
||||
self.send_header('Content-Length', str(len(msg)))
|
||||
self.end_headers()
|
||||
try:
|
||||
self.wfile.write(msg)
|
||||
except Exception as e:
|
||||
print('Error when showing 404')
|
||||
print(e)
|
||||
|
||||
def _webfinger(self) -> bool:
|
||||
if not self.path.startswith('/.well-known'):
|
||||
|
|
Loading…
Reference in New Issue