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

AttributeError: 'CustomImage' object has no attribute 'live' #979

Open
sentryliqd bot opened this issue Mar 12, 2024 · 0 comments
Open

AttributeError: 'CustomImage' object has no attribute 'live' #979

sentryliqd bot opened this issue Mar 12, 2024 · 0 comments

Comments

@sentryliqd
Copy link

sentryliqd bot commented Mar 12, 2024

Sentry Issue: DIGITALSTRATEGIE-AB

AttributeError: 'CustomImage' object has no attribute 'live'
(13 additional frame(s) were not displayed)
...
  File "apps/contrib/elasticsearch.py", line 57, in _get_results_from_hits
    if not obj.live or obj.get_view_restrictions().exists():

Searching for images in wagtail fails, we should maybe add a check (e.g. hasattr() or something )

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

0 participants