Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local source may not work when there are non image files in the path #30

Open
ksh-b opened this issue Sep 14, 2024 · 0 comments
Open

Local source may not work when there are non image files in the path #30

ksh-b opened this issue Sep 14, 2024 · 0 comments

Comments

@ksh-b
Copy link
Owner

ksh-b commented Sep 14, 2024

Traceback (most recent call last):
  File "/home/kshib/.local/bin/wanda", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/kshib/.local/pipx/venvs/wanda/lib/python3.12/site-packages/wanda/wanda.py", line 148, in run
    wp = local(term)
         ^^^^^^^^^^^
  File "/home/kshib/.local/pipx/venvs/wanda/lib/python3.12/site-packages/wanda/sources/extractor.py", line 227, in local
    list(
  File "/home/kshib/.local/pipx/venvs/wanda/lib/python3.12/site-packages/wanda/sources/extractor.py", line 230, in <lambda>
    and filetype.guess(path + f).MIME.startswith("image"),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'MIME'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant