From 570a01aa6c9a3299ce30f04af89b3f01e96aebe4 Mon Sep 17 00:00:00 2001 From: utkonos Date: Tue, 9 Dec 2025 20:21:32 -0500 Subject: Fix show_message_box crashing with `None` description in Python (#7748) --- python/interaction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/interaction.py') diff --git a/python/interaction.py b/python/interaction.py index d94fdb87..670e617b 100644 --- a/python/interaction.py +++ b/python/interaction.py @@ -1522,14 +1522,14 @@ def show_message_box(title, text, buttons=MessageBoxButtonSet.OKButtonSet, icon= :note: This uses a standard QDialog which means simple HTML will render as HTML, but links are not clickable and special characters need to be escaped. - :param str title: Text title for the message box. - :param str text: Text for the main body of the message box. + :param str | None title: Text title for the message box. + :param str | None text: Text for the main body of the message box. :param MessageBoxButtonSet buttons: One of :py:class:`MessageBoxButtonSet` :param MessageBoxIcon icon: One of :py:class:`MessageBoxIcon` :return: Which button was selected :rtype: MessageBoxButtonResult """ - return core.BNShowMessageBox(title, text, buttons, icon) + return core.BNShowMessageBox(title or "", text or "", buttons, icon) def open_url(url): -- cgit v1.3.1