summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-14 16:17:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-14 16:17:59 +0000
commit6dcba6bb2c8f8d96093d0942bb59dece22fdf7ac (patch)
tree5026d1469491de46164ebbc74dac1f7ba5b3cb08 /python
parentReleasing progress-linux version 3.3.5-1.1~progress7.99u1. (diff)
downloadknot-6dcba6bb2c8f8d96093d0942bb59dece22fdf7ac.tar.xz
knot-6dcba6bb2c8f8d96093d0942bb59dece22fdf7ac.zip
Merging upstream version 3.3.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python')
-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):