fix: update all error message on win

This commit is contained in:
dr.lt.data
2023-09-19 09:22:18 +09:00
parent 9671402da3
commit f10cb735e5
2 changed files with 20 additions and 8 deletions

View File

@@ -50,9 +50,13 @@ def gitpull(path):
if repo.is_dirty():
repo.git.stash()
origin = repo.remote(name='origin')
origin.pull(rebase=True)
repo.git.submodule('update', '--init', '--recursive')
try:
origin = repo.remote(name='origin')
origin.pull(rebase=True)
repo.git.submodule('update', '--init', '--recursive')
print("CUSTOM NODE PULL: True")
except Exception as e:
print("CUSTOM NODE PULL: False")
repo.close()