diff --git a/cashu/core/base.py b/cashu/core/base.py index 9cede73e..d08680f0 100644 --- a/cashu/core/base.py +++ b/cashu/core/base.py @@ -308,11 +308,11 @@ def from_row(cls, row: Row): # parse change from row as json change = None - if row["change"]: + if "change" in row.keys() and row["change"]: change = json.loads(row["change"]) outputs = None - if row["outputs"]: + if "outputs" in row.keys() and row["outputs"]: outputs = json.loads(row["outputs"]) return cls(