Replace assertions with explicit raises, just in case the environment is optimized.
Replace assertions with explicit raises, just in case the environment is optimized.

Safihre/cherrypy,cherrypy/cherrypy,Safihre/cherrypy,cherrypy/cherrypy