MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _get_keys

Method _get_keys

pushover_service.py:83–93  ·  view source on GitHub ↗

Return (user_key, api_token) or (None, None) if not configured.

(self)

Source from the content-addressed store, hash-verified

81 # ------------------------------------------------------------------
82
83 def _get_keys(self):
84 """Return (user_key, api_token) or (None, None) if not configured."""
85 try:
86 from env_manager import EnvManager
87 em = EnvManager()
88 user_key = em.get_env_key("RAGNAR_PUSHOVER_USER_KEY")
89 api_token = em.get_env_key("RAGNAR_PUSHOVER_API_TOKEN")
90 return user_key, api_token
91 except Exception as e:
92 logger.debug(f"Pushover key lookup failed: {e}")
93 return None, None
94
95 def is_configured(self):
96 """Return True when both Pushover keys are present."""

Callers 2

is_configuredMethod · 0.95
sendMethod · 0.95

Calls 3

get_env_keyMethod · 0.95
EnvManagerClass · 0.90
debugMethod · 0.80

Tested by

no test coverage detected