Skip to content

Commit

Permalink
增加安装git提示
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Jan 28, 2021
1 parent 15ec26d commit b6f49a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hikyuu/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

# 引入 git 前需设置环境变量,否则某些情况下会报错失败
os.environ['GIT_PYTHON_REFRESH'] = 'quiet'
import git
try:
import git
except Exception as e:
print(e)
print("You need install git! see: https://git-scm.com/downloads")

from hikyuu.util.check import checkif
from hikyuu.util.singleton import SingletonType
Expand Down

0 comments on commit b6f49a3

Please sign in to comment.