From f5a9acc056bdeb6047f3fcade088004c486e94df Mon Sep 17 00:00:00 2001 From: lovetox Date: Sun, 17 Oct 2021 12:15:03 +0200 Subject: Refactor b64decode() --- nbxmpp/modules/vcard_temp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nbxmpp/modules/vcard_temp.py') diff --git a/nbxmpp/modules/vcard_temp.py b/nbxmpp/modules/vcard_temp.py index 7d3483b..26ef002 100644 --- a/nbxmpp/modules/vcard_temp.py +++ b/nbxmpp/modules/vcard_temp.py @@ -138,6 +138,6 @@ class VCard: if not avatar: return None, None - avatar = b64decode(avatar, return_type=bytes) + avatar = b64decode(avatar) avatar_sha = hashlib.sha1(avatar).hexdigest() return avatar, avatar_sha -- cgit v1.2.3