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