MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / should_raise_exceptions

Method should_raise_exceptions

AskAgent/python/core/config.py:595–597  ·  view source on GitHub ↗

Returns True if exceptions should be raised instead of caught (for testing and development).

(self)

Source from the content-addressed store, hash-verified

593 return getattr(self, 'mode', 'production').lower() == 'testing'
594
595 def should_raise_exceptions(self) -> bool:
596 """Returns True if exceptions should be raised instead of caught (for testing and development)."""
597 return self.is_testing_mode() or self.is_development_mode()
598
599 def set_mode(self, mode: str):
600 """Set the application mode (development, production, or testing)."""

Callers 4

run_promptMethod · 0.80
rankItemMethod · 0.80
prepareMethod · 0.80
doMethod · 0.80

Calls 2

is_testing_modeMethod · 0.95
is_development_modeMethod · 0.95

Tested by

no test coverage detected