mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
ci: crnm: fix hyperlink format
While preparing a console link, if there is not padding defined and the text is not strictly a string, we can have an exception that is also finishing the execution. So, we need to strictly cast the text variable. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13342 Signed-off-by: Sergi Blanch-Torne <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35511>
This commit is contained in:
parent
c1cd28a6ab
commit
8f557b84f6
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ def __job_duration_record(dict_item: tuple) -> str:
|
||||||
|
|
||||||
|
|
||||||
def link2print(url: str, text: str, text_pad: int = 0) -> str:
|
def link2print(url: str, text: str, text_pad: int = 0) -> str:
|
||||||
text_pad = len(text) if text_pad < 1 else text_pad
|
text_pad = len(str(text)) if text_pad < 1 else text_pad
|
||||||
return f"{URL_START}{url}\a{text:{text_pad}}{URL_END}"
|
return f"{URL_START}{url}\a{text:{text_pad}}{URL_END}"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue