wendlers / mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices ⛺
MIT License
396 stars 84 forks source link

fixed crash of "exec code_with_mistakes" #92

Closed spinab closed 4 years ago

spinab commented 4 years ago

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.

skorokithakis commented 4 years ago

Thank you!