summaryrefslogtreecommitdiff
path: root/python/interaction.py
diff options
context:
space:
mode:
authorutkonos <utkonos@users.noreply.github.com>2025-12-09 20:21:32 -0500
committerGitHub <noreply@github.com>2025-12-09 20:21:32 -0500
commit570a01aa6c9a3299ce30f04af89b3f01e96aebe4 (patch)
treeb946cccf4abd67bdf495a4cf9cd7ff106806f41a /python/interaction.py
parentdd1f2b0c6796b7bd9b8f441c224804500275f5b1 (diff)
Fix show_message_box crashing with `None` description in Python (#7748)
Diffstat (limited to 'python/interaction.py')
-rw-r--r--python/interaction.py6
1 files changed, 3 insertions, 3 deletions
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):