def onRequestFinish( self, api: mega.MegaApi, request: mega.MegaRequest, e: mega.MegaError, ): if e is None or e.getValue() == e.API_OK: self.public_node = request.getPublicMegaNode() super().onRequestFinish(api, request, e)
def onRequestFinish( self, api: mega.MegaApi, request: mega.MegaRequest, e: mega.MegaError, ): print(f'{self.prefix} onRequestFinish {request} {e}') if e and e.getValue() != e.API_OK: self.error = e self.event.set()