h=[1, 2] try: c=h[3] except KeyboardInterrupt, e: print e except IndexError, e: print e except: print 'Unknown exception'