From 4c06db19017096c1c002a71e39f4a4b508790880 Mon Sep 17 00:00:00 2001 From: Le Long Date: Fri, 9 Jun 2017 00:16:32 +0200 Subject: [PATCH 1/3] add message for exception so that app can render --- lbrynet/lbrynet_daemon/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index de7332a87..ed2f9f9ab 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1757,7 +1757,7 @@ class Daemon(AuthJSONRPCServer): raise Exception("Invalid bid") if bid >= self.session.wallet.get_balance(): - raise InsufficientFundsError() + raise InsufficientFundsError("Insufficient funds. Make sure you have enough LBC to deposit") metadata = metadata or {} if fee is not None: From 8b9c6f53159c42c5bf89c25713481442ed8796cb Mon Sep 17 00:00:00 2001 From: Le Long Date: Fri, 9 Jun 2017 00:30:48 +0200 Subject: [PATCH 2/3] add changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c93498f79..797244a9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ at anytime. ## [Unreleased] ### Added * Added claim_address option to publish API command - * + * Added message for InsufficientFundsError exception ### Changed * Do not catch base exception in API command resolve From 87b6eeeef52ab1ca3df410761e0c2baf6faa736b Mon Sep 17 00:00:00 2001 From: Le Long Date: Fri, 9 Jun 2017 00:39:26 +0200 Subject: [PATCH 3/3] trim line for pylint --- lbrynet/lbrynet_daemon/Daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index ed2f9f9ab..044fea5c8 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -1757,7 +1757,8 @@ class Daemon(AuthJSONRPCServer): raise Exception("Invalid bid") if bid >= self.session.wallet.get_balance(): - raise InsufficientFundsError("Insufficient funds. Make sure you have enough LBC to deposit") + raise InsufficientFundsError('Insufficient funds. ' \ + 'Make sure you have enough LBC to deposit') metadata = metadata or {} if fee is not None: