Files
thor/thor/clients/__init__.py
T
jaredandClaude Opus 5.5 eecb24297a Skeleton: config, source clients, DB migrations, monitor loop with blind tracking, health and metrics
Work in progress for thor#1 phase 1 (PR 1 of 6). Not yet pushed: CI workflow and deploy files still to add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:32:07 -05:00

16 lines
623 B
Python

"""Read-only clients for the sources Thor watches through, plus the Tinker ticket client.
Every client raises :class:`SourceError` when its source can't answer. Callers must treat
that as "unknown" (Thor is blind to that source), never as "nothing found" (thor#1,
Area 1 rule 3; same principle as Gandalf's ``reboots.LokiError``).
"""
class SourceError(Exception):
"""A source could not answer: unreachable, timed out, HTTP error or a malformed reply."""
def __init__(self, source: str, message: str):
super().__init__(f'{source}: {message}')
self.source = source
self.message = message