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