def test_process_exif_raises_unicode_decode_error(self):
        image = self.get_exif_image()
        with patch.object(image, 'save') as mock_save:
            mock_save.side_effect = UnicodeDecodeError(b'utf-8', b'', 0, 1, 'a')
            self.assertIsNone(image.process_exif_data())
Handle UnicodeDecodeError gracefully when saving exif.
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_process_exif_raises_unicode_decode_error