Fix pylint error

This commit is contained in:
hackrush 2018-03-16 21:42:40 +05:30 committed by GitHub
parent db821c51b7
commit 2b69d2fad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1851,7 +1851,7 @@ class Daemon(AuthJSONRPCServer):
raise Exception("Invalid channel name")
if amount <= 0:
raise Exception("Invalid amount")
yield self.session.wallet.update_balance()
if amount >= self.session.wallet.get_balance():
balance = yield self.session.wallet.get_max_usable_balance_for_claim(channel_name)