View on GitHub

Python

Python27 & Python35

download .ZIPdownload .TGZ

Python playground repo

try: && except Exception as e:

     try:
          # do somthing
     except Exception as e:
          logging.exception(e)
          print 'craw error:' + e