Use Python 3.x compatible except: construct

Per (proposed) hacking H203 check, use the non-deprecated
except x as y: construct, which works with any
Python version >= 2.6

Change-Id: Ib7cab00cb8f219154663a4d51a855a1a2718e8cb