From 1942c15080d8a5cd1c14245879d513eb2d3fa84e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 10 2015 13:16:42 +0000 Subject: Tags should not be None, but not an empty list either --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 92200d2..139a5c7 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1236,7 +1236,7 @@ def search_projects( model.Project.parent_id == None ) - if tags is not None: + if tags: if not isinstance(tags, (list, tuple)): tags = [tags]