Skip to content

Commit

Permalink
Fixes a problem which occours if file does not exist
Browse files Browse the repository at this point in the history
Updated to output a message if a requested file does not exist
  • Loading branch information
RobinMeis committed Apr 26, 2014
1 parent d9b523e commit d752d45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def do_GET(self):
arguments["q"] = arguments["q"].replace('+', ' ')
command = commands(self)
search(command).search(arguments["q"])
else:
self.send_header('Content-type', 'text/html')
self.send_response(404)
self.end_headers()
self.wfile.write(bytes('Not found. Please visit <a href="https://github.com/HcDevel/Siri-API/wiki/_pages">https://github.com/HcDevel/Siri-API/wiki/_pages</a>', "utf-8"))

return

Expand Down

0 comments on commit d752d45

Please sign in to comment.