summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-14 16:17:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-14 16:17:58 +0000
commita04a7c41c9327144cc11ffd030c0efc2a4f85534 (patch)
tree812fe9d19c0c90324f80b838b1b1e2976a416999 /python
parentAdding upstream version 3.3.5. (diff)
downloadknot-a04a7c41c9327144cc11ffd030c0efc2a4f85534.tar.xz
knot-a04a7c41c9327144cc11ffd030c0efc2a4f85534.zip
Adding upstream version 3.3.6.upstream/3.3.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--python/libknot/libknot/control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libknot/libknot/control.py b/python/libknot/libknot/control.py
index 44aa516..659aba8 100644
--- a/python/libknot/libknot/control.py
+++ b/python/libknot/libknot/control.py
@@ -70,7 +70,7 @@ class KnotCtlData(object):
def __setitem__(self, index: KnotCtlDataIdx, value: str) -> None:
"""Data unit item setter."""
- self.data[index] = ctypes.c_char_p(value.encode()) if value else ctypes.c_char_p()
+ self.data[index] = ctypes.c_char_p(value.encode()) if value != None else ctypes.c_char_p()
class KnotCtlError(Exception):