diff -r 7f290a3a34b1 -r 30368d31696e gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Tue Aug 21 16:04:44 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Tue Aug 28 08:16:13 2007 +0100 @@ -355,8 +355,12 @@ # serve_file_info() def serve_stream(self, body): - filename = self.query.get("file", None)[0] + args = self.query.get("file", None) + if not args: + self.send_error(404, "File not found") + return + filename = args[0]; if not filename: self.send_error(404, "File not found") return