Fix multi-exception catching on Python 3

Change-Id: Ide2d3d057c8fafde5c2e0e6a6901be479ce14666