Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -423,10 +423,12 @@ def issue_tokens(send,rec,amount):
|
|
| 423 |
try:
|
| 424 |
r = requests.get(f'{main_balance}{rec}.json')
|
| 425 |
lod = json.loads(r.text)
|
|
|
|
|
|
|
| 426 |
except:
|
| 427 |
lod=[]
|
|
|
|
| 428 |
pass
|
| 429 |
-
balance = lod[-1]["balance"]
|
| 430 |
print (balance)
|
| 431 |
balance =int(balance)+int(amount)
|
| 432 |
block = {'index': len(lod) + 1,
|
|
|
|
| 423 |
try:
|
| 424 |
r = requests.get(f'{main_balance}{rec}.json')
|
| 425 |
lod = json.loads(r.text)
|
| 426 |
+
balance = lod[-1]["balance"]
|
| 427 |
+
|
| 428 |
except:
|
| 429 |
lod=[]
|
| 430 |
+
balance=0
|
| 431 |
pass
|
|
|
|
| 432 |
print (balance)
|
| 433 |
balance =int(balance)+int(amount)
|
| 434 |
block = {'index': len(lod) + 1,
|