1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"""check empty except statement """ from __future__ import print_function __revision__ = 0 if __revision__: try: print(__revision__) except: print('error') try: __revision__ += 1 except TypeError: print('error') except Exception: print('error')