From 78b12dc41169bd4f45f069ffa8c1dd9b8be5ec9d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 17 Sep 2021 11:10:50 -0300 Subject: [PATCH] fix conflict with imported function --- lbry/error/README.md | 2 +- lbry/error/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lbry/error/README.md b/lbry/error/README.md index 3244bf76d..63bd77f3f 100644 --- a/lbry/error/README.md +++ b/lbry/error/README.md @@ -63,7 +63,7 @@ Code | Name | Message 421 | InvalidPassword | Password is invalid. 422 | IncompatibleWalletServer | '{server}:{port}' has an incompatibly old version. 423 | TooManyClaimSearchParameters | {key} cant have more than {limit} items. -424 | AlreadyPurchased | You already have a purchase for claim_id '{claim_id}'. Use --allow-duplicate-purchase flag to override. +424 | AlreadyPurchased | You already have a purchase for claim_id '{claim_id_hex}'. Use --allow-duplicate-purchase flag to override. 431 | ServerPaymentInvalidAddress | Invalid address from wallet server: '{address}' - skipping payment round. 432 | ServerPaymentWalletLocked | Cannot spend funds with locked wallet, skipping payment round. 433 | ServerPaymentFeeAboveMaxAllowed | Daily server fee of {daily_fee} exceeds maximum configured of {max_fee} LBC. diff --git a/lbry/error/__init__.py b/lbry/error/__init__.py index 34056a78d..7f16a3a41 100644 --- a/lbry/error/__init__.py +++ b/lbry/error/__init__.py @@ -292,9 +292,9 @@ class AlreadyPurchasedError(WalletError): allow-duplicate-purchase flag to override. """ - def __init__(self, claim_id): - self.claim_id = claim_id - super().__init__(f"You already have a purchase for claim_id '{claim_id}'. Use") + def __init__(self, claim_id_hex): + self.claim_id_hex = claim_id_hex + super().__init__(f"You already have a purchase for claim_id '{claim_id_hex}'. Use") class ServerPaymentInvalidAddressError(WalletError):