Fixed incorrect binary path issue when the user deletes the binary path from the preferences. Fixes #6619

This commit is contained in:
Akshay Joshi
2021-07-26 11:49:48 +05:30
parent fdc3028124
commit 3f67f512ec
2 changed files with 3 additions and 1 deletions

View File

@@ -192,7 +192,8 @@ class ServerType(object):
for bin_path in bin_path_json:
if int(bin_path['version']) <= sverison < \
int(bin_path['next_major_version']) and \
bin_path['binaryPath'] is not None:
bin_path['binaryPath'] is not None and \
bin_path['binaryPath'].strip() != '':
return bin_path['binaryPath']
if bin_path['isDefault']: