ascii strings can be encoded as ascii, so it's fair to assume values that will cause a UnicodeDecodeError are already unicode types. I think `call.excinfo.value.encode('ascii', 'ignore')` will suffice.