update doc
always throw TypeError and original error; bug fix
fix is not None syntax bug