One of my views has a number of if else clauses to control what the user sees depending on context. I'm finding it painfully difficult to debug because omitting a pass statement generates a not very helpful error:
Traceback (most recent call last): File "/Users/mellis/w2ptip/gluon/rocket.py", line 871, in run self.run_app(conn) File "/Users/mellis/w2ptip/gluon/rocket.py", line 1281, in run_app self.environ = environ = self.build_environ(sock_file, conn) File "/Users/mellis/w2ptip/gluon/rocket.py", line 1114, in build_environ request = self.read_request_line(sock_file) File "/Users/mellis/w2ptip/gluon/rocket.py", line 942, in read_request_line raise SocketClosed('Client closed socket.') SocketClosed: Client closed socket. Usually I can spot the problem visually, but I've been stuck for over an hour just now and can't find what's wrong. Are there errors other than missing pass statements that will cause this? Also, where would I need to set a breakpoint to step through template parsing (and is that a useful thing to do) ? I'm working at tip. Thanks, Mike