def _handle_reply(self, msg): if not isinstance(msg, messages.MsgGetListReply): raise SchemaError('weird reply to get_list') self.sub.list_changed(msg.objs, msg.gone)