fix: updater中错误的dulwich预引用

This commit is contained in:
Rock Chin
2023-01-02 13:37:28 +08:00
parent cd8d03e8ff
commit 0dc7781325

View File

@@ -1,8 +1,10 @@
import dulwich.porcelain
def update_all():
"""使用dulwich更新源码"""
try:
import dulwich
except ModuleNotFoundError:
raise Exception("dulwich模块未安装,请查看 https://github.com/RockChinQ/QChatGPT/issues/77")
try:
from dulwich import porcelain
repo = porcelain.open_repo('.')