Skip to content

Commit 19d80b2

Browse files
ksmuczynskiCopilot
andauthored
fix(transfers): warn when owner key mapper is missing
Logs the expected path on FileNotFoundError to make missing mappings visible and easier to diagnose. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dad386c commit 19d80b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

transfers/contact_transfer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def __init__(self, *args, **kw):
6262
with open(ownerkey_mapper_path, "r") as f:
6363
self._ownerkey_mapper = json.load(f)
6464
except FileNotFoundError:
65+
logger.warning(
66+
"Owner key mapper file not found at '%s'; proceeding with empty owner key mapping.",
67+
ownerkey_mapper_path,
68+
)
6569
self._ownerkey_mapper = {}
6670

6771
self._added = []

0 commit comments

Comments
 (0)