The exec function (e.g. exec int('a')) fails with 'TypeError: can only concatenate str (not "bytes") to str' and crashes Mpfshell.
The crash is caused by code in __error function:
print("\n" + colorama.Fore.RED + msg + colorama.Fore.RESET + "\n").
It needs str not bytes.
The exec function (e.g. exec int('a')) fails with 'TypeError: can only concatenate str (not "bytes") to str' and crashes Mpfshell. The crash is caused by code in __error function:
print("\n" + colorama.Fore.RED + msg + colorama.Fore.RESET + "\n")
. It needs str not bytes.