Merge pull request #61 from real666maverick/bug_UnicodeDecodeError

fix UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in posiion 10: ordinal not in range(128) on plugin_loaded (ST2)
This commit is contained in:
Alan Hamlett 2016-01-15 12:18:45 +01:00
commit 006341eb72

View File

@ -282,7 +282,7 @@ def find_python_in_folder(folder, headless=True):
if not retcode and pattern.search(output):
return path
except:
log(DEBUG, u('Python Version Output: {0}').format(u(sys.exc_info()[1])))
log(DEBUG, u('Python Version Output: {0}').format(u(str(sys.exc_info()[1]))))
if headless:
path = find_python_in_folder(folder, headless=False)