Catch `binascii.a2b_hex` errors on Python 3