see line 463 - "return" - but error below!
why?
Error ticket for "7pay_in"Ticket ID
__1.2018-03-04.11-56-18.c0a358b4-b24b-4968-be91-5b80d853bed1
<type 'exceptions.KeyError'> '1'Версия
web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
Python Python 2.7.5: /usr/bin/python (prefix: /usr)Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Traceback (most recent call last):
File "/opt/web-apps/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/opt/web-apps/web2py/applications/7pay_in/controllers/tools.py"
<https://193.42.145.65/admin/default/edit/7pay_in/controllers/tools.py>, line
584, in <module>
File "/opt/web-apps/web2py/gluon/globals.py", line 419, in <lambda>
self._caller = lambda f: f()
File "/opt/web-apps/web2py/applications/7pay_in/controllers/tools.py"
<https://193.42.145.65/admin/default/edit/7pay_in/controllers/tools.py>, line
280, in block_proc
return serv_block_proc.run_once(db, abbrev)
File "applications/7pay_in/modules/serv_block_proc.py", line 466, in run_once
##return
KeyError: '1'
Error snapshot [image: help]
<https://193.42.145.65/admin/default/ticket/7pay_in/__1.2018-03-04.11-56-18.c0a358b4-b24b-4968-be91-5b80d853bed1#>
<type 'exceptions.KeyError'>('1')
inspect attributes
Frames
-
*File /opt/web-apps/web2py/gluon/restricted.py in restricted at line 219*
код аргументы переменные
-
*File /opt/web-apps/web2py/applications/7pay_in/controllers/tools.py in
<module> at line 584* код аргументы переменные
-
*File /opt/web-apps/web2py/gluon/globals.py in <lambda> at line 419* код
аргументы переменные
-
*File /opt/web-apps/web2py/applications/7pay_in/controllers/tools.py in
block_proc at line 280* код аргументы переменные
-
*File
/opt/web-apps/web2py/applications/7pay_in/modules/serv_block_proc.py in
run_once at line 466* код аргументы переменные
Function argument list
(db=<DAL uri="mysql:******@localhost/ipay">, abbrev='ERA')
Code listing
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
tab, curr_block = get_incomed(db, erachain_rpc, erachain_addr, curr,
xcurr, addr_in, from_block_in)
return tab
print 'tab: ',tab
##return
b_p_db_update(db, None, curr, xcurr, tab, curr_block)
# баланс берем по обработанным только блокам
###balance = crypto_client.get_reserve(curr, xcurr, conn)
#conn.getbalance()
balances = rpc_erachain.get_balances(erachain_rpc, erachain_addr)
Variables
builtinNone None
curr_block 73880
db <DAL uri="mysql:******@localhost/ipay">
global b_p_db_update <function b_p_db_update>
tab []
curr <Row {'exchg_pairs': <Set (`exchg_pairs`.`curr1_...: 0.001,
'balance': 0.0, 'clients_deposit': 0.0}>
xcurr <Row {'conf': 0L, 'xcurrs_raw_trans': <Set
(`xcu...ents_xwallets`.`xcurr_id` = 7)>, 'reserve': 0.0}>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.