@@ -463,8 +463,8 @@ def generate_parameter_docs() -> str:
463463 pattern_has_symbols = False
464464 for _pattern , examples in patterns .items ():
465465 for ex in examples :
466- p = REGISTRY .all_params [ ex ]
467- if p .constraints or ex in by_trigger or ex in by_param :
466+ p = REGISTRY .all_params . get ( ex )
467+ if p and ( p .constraints or ex in by_trigger or ex in by_param ) :
468468 pattern_has_constraints = True
469469 if get_math_symbol (ex ):
470470 pattern_has_symbols = True
@@ -484,7 +484,8 @@ def generate_parameter_docs() -> str:
484484
485485 for pattern , examples in sorted (patterns .items ()):
486486 example = examples [0 ]
487- desc = REGISTRY .all_params [example ].description
487+ _ep = REGISTRY .all_params .get (example )
488+ desc = _ep .description if _ep else ""
488489 # Truncate long descriptions
489490 if len (desc ) > 60 :
490491 desc = desc [:57 ] + "..."
@@ -497,8 +498,9 @@ def generate_parameter_docs() -> str:
497498 sym = get_math_symbol (example )
498499 row += f" | { sym } "
499500 if pattern_has_constraints :
500- p = REGISTRY .all_params [example ]
501- row += f" | { _format_constraints_cell (example , p , by_trigger , by_param )} "
501+ p = REGISTRY .all_params .get (example )
502+ if p :
503+ row += f" | { _format_constraints_cell (example , p , by_trigger , by_param )} "
502504 lines .append (row + " |" )
503505
504506 lines .append ("" )
0 commit comments