diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index 11be8ae..9b87a8c 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -29,7 +29,7 @@ def getPosters(movie_id, url_prefix='', limit=lambda x, y: 0.3 < x/y < 1): if p.site not in posters: posters[p.site] = [] poster = p.get() - if poster and not poster.width or not poster.height: + if poster and (not poster.width or not poster.height): p.failed = True p.status = "invalid image" p.image.delete()