cfg.unwanted_extensions() is a list so check must be cfg.unwanted_extensions() != []

Signed-off-by: sanderjo <sander.jonkers+github@gmail.com>