Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1593

Show
Ignore:
Timestamp:
01/11/07 10:44:55
Author:
fumanchu
Message:

Assert (not self.started_response) on write.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/wsgiserver/__init__.py

    r1589 r1593  
    402402        if self.started_response: 
    403403            if not exc_info: 
    404                 assert False, "Already started response" 
     404                raise AssertionError("WSGI start_response called a second " 
     405                                     "time with no exc_info.") 
    405406            else: 
    406407                try: 
     
    419420        data from the iterable returned by the WSGI application). 
    420421        """ 
     422        if not self.started_response: 
     423            raise AssertionError("WSGI write called before start_response.") 
     424         
    421425        if not self.sent_headers: 
    422426            self.sent_headers = True 

Hosted by WebFaction

Log in as guest/cpguest to create tickets