odwyersoftware / mega.py

Python library for the https://mega.nz/ API.
https://github.com/odwyersoftware/mega.py
Apache License 2.0
349 stars 170 forks source link

UnboundLocalError: local variable 'i' referenced before assignment #74

Open metin02oktay opened 2 years ago

metin02oktay commented 2 years ago

https://github.com/odwyersoftware/mega.py/blob/c27d8379e48af23072c46350396ae75f84ec1e30/src/mega/mega.py#L727

 File "/usr/local/lib/python3.8/dist-packages/mega/mega.py", line 640, in download_url
    return self._download_file(
  File "/usr/local/lib/python3.8/dist-packages/mega/mega.py", line 727, in _download_file
    i += 16
UnboundLocalError: local variable 'i' referenced before assignment

I got this error output.

Junwoo-Seo-1998 commented 2 years ago

same issue +1

pgp commented 2 years ago

That seems to happen when you have exhausted your free download quota on free account/using no account...