From abd66da607d45c8a5a4b42f221c391ac1d723ea5 Mon Sep 17 00:00:00 2001
From: Peder Bergebakken Sundt <pbsds@hotmail.com>
Date: Fri, 21 Mar 2025 13:53:23 +0100
Subject: [PATCH] pdoc - fallback to "builtin" again

---
 profiles/http/docs/pdoc.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/http/docs/pdoc.nix b/profiles/http/docs/pdoc.nix
index 9b81c55..ce0e2c5 100644
--- a/profiles/http/docs/pdoc.nix
+++ b/profiles/http/docs/pdoc.nix
@@ -218,7 +218,7 @@ let
           write "<td>$(
               python -c '
                 import '"$LITERAL"' as x;
-                print(getattr(x, "__doc__", "builtin").split("\n", 1)[0])
+                print(getattr(x, "__doc__", "builtin").split("\n", 1)[0] or "builtin")
               ' | jq -Rr @html
           )"
         else