Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions irrd/mirroring/nrtm4/nrtm4_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,14 @@ def _deserialize_unf(self, unf_content: str) -> tuple[bytes, str]:
" client-clear-known-keys' command."
)
raise NRTM4ClientError(msg)
error_messages = [f"; attempting {key} resulted in error: {ve}" for key, ve in errors.items()]
raise NRTM4ClientError(f"{self.source}: No valid signature found for any known keys{error_messages}")

error_messages = [
"; attempting '" + key.replace("\n", "\\n") + f"' resulted in error: '{ve}'"
for key, ve in errors.items()
]
raise NRTM4ClientError(
f"{self.source}: No valid signature found for any known keys{''.join(error_messages)}"
)

def _current_db_status(self) -> tuple[bool, NRTM4ClientDatabaseStatus]:
"""Look up the current status of self.source in the database."""
Expand Down
Loading