Commit 7437834b authored by zhaoxusheng's avatar zhaoxusheng
Browse files

# bugfix 获取hithub信息失败

Showing with 4 additions and 1 deletion
+4 -1
......@@ -19,7 +19,10 @@ class GitHubApi(BaseHttpClient):
self.base_url = 'https://api.github.com'
def _reload(self):
github_service_info = custom_config.GITHUB
if isinstance(custom_config.GITHUB, (unicode,str)):
github_service_info = eval(custom_config.GITHUB)
else:
github_service_info = custom_config.GITHUB
for k, v in github_service_info.items():
setattr(self, k, v)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment