Omnibus commited on
Commit
5222d9d
·
1 Parent(s): c3ba4ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -529,9 +529,10 @@ def issue_tokens(send,rec,amount):
529
  print (balance)
530
  balance_send =int(balance)-int(amount)
531
  if balance >=0:
532
- p==True
533
  response,message = get_my_chain_rec(rec)
534
- lod_rec = json.loads(response)
 
535
  #try:
536
  if lod_rec["chain"][-1]["index"] > 1:
537
  balance = lod_rec["chain"][-1]["balance"]
@@ -545,8 +546,8 @@ def issue_tokens(send,rec,amount):
545
  if z==False:
546
  mes = "Invalid Blockchain"
547
  p=False
548
- except Exception:
549
- mes = "Blockchain not loaded?"
550
  p=False
551
 
552
 
 
529
  print (balance)
530
  balance_send =int(balance)-int(amount)
531
  if balance >=0:
532
+ p=True
533
  response,message = get_my_chain_rec(rec)
534
+ #lod_rec = json.loads(response)
535
+ lod_rec = response
536
  #try:
537
  if lod_rec["chain"][-1]["index"] > 1:
538
  balance = lod_rec["chain"][-1]["balance"]
 
546
  if z==False:
547
  mes = "Invalid Blockchain"
548
  p=False
549
+ except Exception as e:
550
+ mes = f"Blockchain not loaded? {e}"
551
  p=False
552
 
553