Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
saeveritt authored Feb 21, 2017
1 parent 7160eb1 commit 8e56c01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pacli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,11 @@ def card_issue(provider, args):
except IndexError:
print("\n", {"error": "Deck not found."})
return
if not provider.getaddressesbyaccount(deck.name):
print("\n", {"error": "You are not even subscribed to this deck, how can you issue cards?"})
return
if provider.validateaddress(deck.issuer)["ismine"]:
try:
utxo = provider.select_inputs(0.02, deck.issuer)
except ValueError:
print("\n", {"error": "Insufficient funds in issuing address."})
print("\n", {"error": "Please send funds to the issuing address."})
return
else:
print("\n", {"error": "You are not the owner of this deck."})
Expand Down

0 comments on commit 8e56c01

Please sign in to comment.