예제 #1
0
    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)
예제 #2
0
 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()