We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183cdd5 commit c784857Copy full SHA for c784857
pyray/__init__.py
@@ -77,7 +77,10 @@ def func(*args):
77
if result is None:
78
return
79
if str(type(result)) == "<class '_cffi_backend._CDataBase'>" and str(result).startswith("<cdata 'char *'"):
80
- result = ffi.string(result).decode('utf-8')
+ if str(result) == "<cdata 'char *' NULL>":
81
+ result = ""
82
+ else:
83
+ result = ffi.string(result).decode('utf-8')
84
return result
85
return func
86
version.py
@@ -1 +1 @@
1
-__version__ = "4.0.0.1"
+__version__ = "4.0.0.2"
0 commit comments