Skip to content

Commit

Permalink
fix detach and attach unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Nov 26, 2024
1 parent b11b50f commit e864a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/messages/attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def unpack(message, return_dict=False):
}

return (asset, int(quantity), destination_vout)
except Exception as e:
raise exceptions.UnpackError(f"Cannot unpack utxo message: {e}") from e
except Exception:
return "", 0, None


def pay_fee(db, tx, source, fee):
Expand Down
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/messages/detach.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def unpack(message, return_dict=False):
"destination": destination,
}
return destination
except Exception as e:
raise exceptions.UnpackError(f"Cannot unpack utxo message: {e}") from e
except Exception:
return None


def detach_assets(db, tx, source, destination=None):
Expand Down

0 comments on commit e864a21

Please sign in to comment.