Fix errors introduced by #6911
Somehow I've missed the failures while merging, totally my fault.
This commit is contained in:
parent
f506682abe
commit
e1becae24c
|
@ -31,11 +31,10 @@ import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from subprocess import CalledProcessError
|
||||||
from subprocess import check_call
|
from subprocess import check_call
|
||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
from subprocess import PIPE
|
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
from subprocess import STDOUT
|
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
@ -178,7 +177,7 @@ def trigger_release(payload_path: Path, token: str) -> None:
|
||||||
print(f"Notified in original comment {Fore.CYAN}{comment.url}{Fore.RESET}.")
|
print(f"Notified in original comment {Fore.CYAN}{comment.url}{Fore.RESET}.")
|
||||||
|
|
||||||
print(f"{Fore.GREEN}Success.")
|
print(f"{Fore.GREEN}Success.")
|
||||||
except CallProcessError as e:
|
except CalledProcessError as e:
|
||||||
error_contents = e.output
|
error_contents = e.output
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_contents = str(e)
|
error_contents = str(e)
|
||||||
|
@ -213,7 +212,7 @@ def trigger_release(payload_path: Path, token: str) -> None:
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
print_and_exit(f"{Fore.RED}{e}")
|
print_and_exit(f"{Fore.RED}{error_contents}")
|
||||||
|
|
||||||
|
|
||||||
def find_next_version(base_branch: str) -> str:
|
def find_next_version(base_branch: str) -> str:
|
||||||
|
|
Loading…
Reference in New Issue