Don't convert handle if None
svn: r21121
This commit is contained in:
parent
d23aca2481
commit
ffc935599d
@ -26,7 +26,7 @@ class Handle:
|
|||||||
def __init__(self, classname, handle):
|
def __init__(self, classname, handle):
|
||||||
""" Class to hold type and handle of referenced item """
|
""" Class to hold type and handle of referenced item """
|
||||||
self.classname = classname
|
self.classname = classname
|
||||||
if not isinstance(handle, UNITYPE):
|
if handle and not isinstance(handle, UNITYPE):
|
||||||
handle = handle.decode('utf-8')
|
handle = handle.decode('utf-8')
|
||||||
self.handle = handle
|
self.handle = handle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user