Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
808 B · 22 lines
1234567891011121314151617181920212223From a2c48cedc45db52469b93b6fa7a5d50c6722586f Mon Sep 17 00:00:00 2001From: Ben Gosney <bengosney@googlemail.com>Date: Sun, 25 Aug 2024 14:49:33 +0100Subject: [PATCH] fix(query): handle None
--- polymorphic/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/polymorphic/query.py b/polymorphic/query.pyindex 8e93281a..2d2df6c3 100644--- a/polymorphic/query.py+++ b/polymorphic/query.py@@ -278,7 +278,7 @@ def tree_node_test___lookup(my_model, node): elif hasattr(a, "get_source_expressions"): for source_expression in a.get_source_expressions(): test___lookup(source_expression)- else:+ elif a is not None: assert "___" not in a.name, ___lookup_assert_msg for a in args: