nexusLIMS.cli#

CLI commands for NexusLIMS.

Submodules#

Package Contents#

Functions#

handle_config_error

Context manager that catches config ValidationError and exits cleanly.

API#

nexusLIMS.cli.handle_config_error() Iterator[None][source]#

Context manager that catches config ValidationError and exits cleanly.

Instead of dumping a raw Pydantic traceback, this prints a short, actionable message directing the user to nexuslims config edit and the online documentation.

Usage#

::

with handle_config_error():
    from nexusLIMS.config import settings
    settings.NX_DATA_PATH  # may raise ValidationError