Fix Handle.from_struct to return just handle
This commit is contained in:
parent
130e2890c6
commit
c24e037a64
@ -44,5 +44,7 @@ class Handle:
|
||||
def from_struct(cls, struct):
|
||||
if isinstance(struct, Handle):
|
||||
return struct.handle
|
||||
elif isinstance(struct, dict):
|
||||
return struct["handle"]
|
||||
else:
|
||||
return struct
|
||||
|
Loading…
Reference in New Issue
Block a user