Bug #51978 can not connect to server,python error
Submitted: 12 Mar 2010 7:25 Modified: 16 Mar 2010 2:32
Reporter: Yanlu Zhang Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S1 (Critical)
Version:5.2.16 oss beta OS:Windows (win7)
Assigned to: CPU Architecture:Any
Tags: Contribution, python error

[12 Mar 2010 7:25] Yanlu Zhang
Description:
modules\wb_admin_control_be.py
line 666-667
def get_config_file_path(self):
      return self.expand_path_variables(self.settings.serverInfo['sys.config.path'].strip(" \r\t\n\b"))

when self.settings.serverInfo['sys.config.path'] returns None,
the program would fail.

How to repeat:
after installed the workbench,just run Administation.

make sure you evr "sys.config.path" is None.

Suggested fix:
I fix it like this:
def get_config_file_path(self):
      return self.expand_path_variables((self.settings.serverInfo['sys.config.path'] or "").strip(" \r\t\n\b"))

i works well :)
[13 Mar 2010 1:10] MySQL Verification Team
Thank you for the bug report.
[16 Mar 2010 2:32] Alfredo Kojima
This is a duplicate of bug #51476