From 6dcba6bb2c8f8d96093d0942bb59dece22fdf7ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 14 Jun 2024 18:17:59 +0200 Subject: Merging upstream version 3.3.6. Signed-off-by: Daniel Baumann --- python/libknot/libknot/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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): -- cgit v1.2.3