Skip to content

Commit 5c4b625

Browse files
committed
fix: ruff format discovery.py and memory_tools.py
1 parent d94ec2c commit 5c4b625

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/hawk/discovery.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ async def _fetch_card(self, base_url: str) -> AgentCard | None:
160160
return AgentCard.from_dict(cast("dict[str, Any]", data))
161161
except Exception as exc:
162162
import logging
163-
logging.getLogger(__name__).debug("Failed to fetch agent card from %s: %s", base_url, exc)
163+
164+
logging.getLogger(__name__).debug(
165+
"Failed to fetch agent card from %s: %s", base_url, exc
166+
)
164167
return None
165168

166169

src/hawk/memory_tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def record_memory(
4949
return f"Recorded to persistent memory: '{content[:100]}...'"
5050
except Exception as exc:
5151
import logging
52+
5253
logging.getLogger(__name__).debug("Failed to persist memory via yaad: %s", exc)
5354

5455
return f"Recorded to session memory: '{content[:100]}...'"
@@ -67,6 +68,7 @@ def retrieve_memories(self, query: str, limit: int = 5) -> str:
6768
)
6869
except Exception as exc:
6970
import logging
71+
7072
logging.getLogger(__name__).debug("Failed to recall memories via yaad: %s", exc)
7173

7274
# Fallback to local fuzzy match

0 commit comments

Comments
 (0)