Update update_script.py

This commit is contained in:
Saifeddine ALOUI 2023-10-16 09:00:37 +02:00 committed by GitHub
parent 738e1c84e0
commit 36f877d2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,9 @@ def run_git_pull():
for submodule in repo.submodules:
submodule_repo = submodule.module()
submodule_repo.git.checkout('main')
except:
except Exception as ex:
print("Couldn't update submodules")
print(ex)
return True
except git.GitCommandError as e:
print(f"Error during git pull: {e}")