def _handle_callback(self, data):
cb_id = data.get("<STR_LIT:id>")<EOL>args = data.get("<STR_LIT:args>")<EOL>event = self.__callbacks.pop(cb_id, None)<EOL>if not event:<EOL><INDENT>return<EOL><DEDENT>if not args:<EOL><INDENT>event.put(args)<EOL>return<EOL><DEDENT>err, info = args<EOL>if err is None:<EOL><INDENT>event.put(info)<EOL><DEDENT>else:<EOL><INDENT>LOGGER.warning("<STR_LIT>", str(err))<EOL>event.put(err)<EOL><DEDENT>
Handle lain's callback. Only used with getFileinfo so far