From cad285cc822aaf3614e3d9b4e6bf8f3ee537bce7 Mon Sep 17 00:00:00 2001 From: IdanDavidi Date: Sat, 21 Jul 2018 10:01:17 +0300 Subject: [PATCH] Fix a bug: printing emoji encoded with utf-8 When there is an emoji in an inappropriate tag, the app crashes. Now it is fixed. --- instapy/instapy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instapy/instapy.py b/instapy/instapy.py index 64d8c6de2..50cbe30b2 100644 --- a/instapy/instapy.py +++ b/instapy/instapy.py @@ -1331,7 +1331,7 @@ def like_by_tags(self, already_liked += 1 else: self.logger.info( - '--> Image not liked: {}'.format(reason.encode('utf-8'))) + '--> Image not liked: {}'.format(reason)) inap_img += 1 except NoSuchElementException as err: self.logger.error('Invalid Page: {}'.format(err))