Fix Handle.from_struct to return just handle
This commit is contained in:
1 parent
130e2890c6
commit
c24e037a64
1 file changed
+2
@@ -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
|
||||
Reference in new issue
Block a user