From 8c974aafc725f8dec19f6bd78b509547152738a5 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 7 Nov 2019 22:20:46 +0100 Subject: [PATCH] Fix ultimo commit :P --- core/support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/support.py b/core/support.py index 6c5401d6..0af99c2c 100644 --- a/core/support.py +++ b/core/support.py @@ -682,8 +682,8 @@ def menu(func): def typo(string, typography=''): kod_color = '0xFF65B3DA' #'0xFF0081C2' - - string = str(string.encode('utf8')) + try: string = str(string) + except: string = str(string.encode('utf8')) # Check if the typographic attributes are in the string or outside if typography: string = string + ' ' + typography