Commits

Kai Diefenbach  committed bd198f9

utils.index_product: check for product before check whether is is active

  • Participants
  • Parent commits c7f3ee0

Comments (0)

Files changed (1)

File lfs_solr/utils.py

         except AttributeError:
             return
 
-    if product.active:
+    if product and product.active:
         _index_products([product])
 
 def delete_product(product):