File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 31
31
import re
32
32
import sys
33
33
from pathlib import Path
34
+ from subprocess import CalledProcessError
34
35
from subprocess import check_call
35
36
from subprocess import check_output
36
- from subprocess import PIPE
37
37
from subprocess import run
38
- from subprocess import STDOUT
39
38
from textwrap import dedent
40
39
from typing import Dict
41
40
from typing import Optional
@@ -178,7 +177,7 @@ def trigger_release(payload_path: Path, token: str) -> None:
178
177
print (f"Notified in original comment { Fore .CYAN } { comment .url } { Fore .RESET } ." )
179
178
180
179
print (f"{ Fore .GREEN } Success." )
181
- except CallProcessError as e :
180
+ except CalledProcessError as e :
182
181
error_contents = e .output
183
182
except Exception as e :
184
183
error_contents = str (e )
@@ -213,7 +212,7 @@ def trigger_release(payload_path: Path, token: str) -> None:
213
212
"""
214
213
)
215
214
)
216
- print_and_exit (f"{ Fore .RED } { e } " )
215
+ print_and_exit (f"{ Fore .RED } { error_contents } " )
217
216
218
217
219
218
def find_next_version (base_branch : str ) -> str :
You can’t perform that action at this time.
0 commit comments