nstrydom2 / anonfile-api

An unofficial Python Anonfiles.com API
MIT License
62 stars 24 forks source link

The API Doesnt work ? #49

Closed Raaptex closed 3 years ago

Raaptex commented 3 years ago

unsupported operand type(s) for -=: 'tuple' and 'int' Traceback (most recent call last): File "c:\users\raptex\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\raptex\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\raptex\AppData\Local\Programs\Python\Python39\Scripts\anonfile.exe__main.py", line 7, in File "c:\users\raptex\appdata\local\programs\python\python39\lib\site-packages\anonfile\init__.py", line 37, in main print(f"URL: {upload.url.geturl()}") AttributeError: 'NoneType' object has no attribute 'url'

hentai-chan commented 3 years ago

I can't reproduce this error with version 0.2.4. Would have been great if you could use the Bug Report template next time you raise an issue. We need more information like example code used and your version of Python, etc.

Raaptex commented 3 years ago

I can't reproduce this error with version 0.2.4. Would have been great if you could use the Bug Report template next time you raise an issue. We need more information like example code used and your version of Python, etc.

Ok

hentai-chan commented 3 years ago

@Raaptex Update: the API currently only works with small (text) files, we didn't test for larger input. We're currently working on a better solution and updating the docs (see also: PR #50)