From fdae027c01ec346b422b4f6c7489c896cdd90a7b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 23 Mar 2023 00:24:28 +0100 Subject: [PATCH] FIx any --- commands/pygg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/pygg.py b/commands/pygg.py index 38facaf..6c7810c 100755 --- a/commands/pygg.py +++ b/commands/pygg.py @@ -157,14 +157,14 @@ def search_ygg(query, multi, full): if int(downloads) < args.downloads: continue - if any(word.lower() in name for word in args.blacklist): + if any(word and word.lower() in name for word in args.blacklist): continue if args.year and str(args.year) not in name: continue if args.uploader and not any( - uploader.lower() in name for uploader in args.uploader + uploader and uploader.lower() in name for uploader in args.uploader ): continue