add no-cover pragma around TypeError check

python 3.4 inspect on map doesn't fail