diff --git a/core/views/scans.py b/core/views/scans.py
index 1556c0f..8e334bf 100644
--- a/core/views/scans.py
+++ b/core/views/scans.py
@@ -298,7 +298,7 @@ def cavewallets(request, caveid):
                 message = f" ! In {z.walletname} there is an unrecognised cave name '{cleanid}', adding to pending list."
                 print(message)
                 DataIssue.objects.update_or_create(parser="scans", message=message, url=wurl)
-                add_cave_to_pending_list(cleanid, f"an unrecognised cave name in {z.walletname}") 
+                add_cave_to_pending_list(cleanid, z, f"an unrecognised cave name in {z.walletname}") 
 
     manywallets = list(set(wallets))
     for w in manywallets: