mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
fix: updater中错误的dulwich预引用
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
import dulwich.porcelain
|
|
||||||
|
|
||||||
|
|
||||||
def update_all():
|
def update_all():
|
||||||
"""使用dulwich更新源码"""
|
"""使用dulwich更新源码"""
|
||||||
|
try:
|
||||||
|
import dulwich
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
raise Exception("dulwich模块未安装,请查看 https://github.com/RockChinQ/QChatGPT/issues/77")
|
||||||
try:
|
try:
|
||||||
from dulwich import porcelain
|
from dulwich import porcelain
|
||||||
repo = porcelain.open_repo('.')
|
repo = porcelain.open_repo('.')
|
||||||
|
|||||||
Reference in New Issue
Block a user