diff --git a/trigger.py b/trigger.py index 73a39b6..eb82e7b 100644 --- a/trigger.py +++ b/trigger.py @@ -28,8 +28,11 @@ repo = Repo(base_dir) repo.create_tag(current_time) # Nuke the remote if it existed -if repo.remote("pushback").exists(): - repo.remote().remove(repo, "pushback") +try: + if repo.remote("pushback").exists(): + repo.remote().remove(repo, "pushback") +except ValueError: + pass repo.create_remote( "pushback", f"https://{base_repo_user}:{base_repo_pass}@git.baalajimaestro.me/baalajimaestro/{content_repo_git}.git",