demo_ref_keyword_except2.py:
➜ begtut>python demo_keyword_except2.py
You are comparing values of different type