You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1- Update the mega.py library to the latest version.
2- Downgrade the tenacity library to version 5.1.5.
3- Remove the line before the call function.
4- Go to the _asyncio.py file and modify the call function to the following:
async def call(self, fn, *args, **kwargs): # Use async here
self.begin(fn)
retry_state = RetryCallState(
retry_object=self, fn=fn, args=args, kwargs=kwargs)
while True:
do = self.iter(retry_state=retry_state)
if isinstance(do, DoAttempt):
try:
result = await fn(*args, **kwargs) # Use await here
except BaseException:
retry_state.set_exception(sys.exc_info())
else:
retry_state.set_result(result)
elif isinstance(do, DoSleep):
retry_state.prepare_for_next_attempt()
await self.sleep(do) # Use await here
else:
return do
The text was updated successfully, but these errors were encountered:
To solve the problem:
1- Update the mega.py library to the latest version.
2- Downgrade the tenacity library to version 5.1.5.
3- Remove the line before the call function.
4- Go to the _asyncio.py file and modify the call function to the following:
The text was updated successfully, but these errors were encountered: