Handle unicode errors

This commit is contained in:
Ivan Kravets
2017-12-04 16:18:45 +02:00
parent ea99701172
commit 3b1fa572fa

View File

@ -320,7 +320,10 @@ def on_exception(e):
exception.NotPlatformIOProject,
exception.UserSideException)
]
skip_conditions.append("[API] Account: " in str(e))
try:
skip_conditions.append("[API] Account: " in str(e))
except UnicodeEncodeError as ue:
e = ue
if any(skip_conditions):
return
is_crash = any([