steemit / simple_steem_client

A minimalist Steem RPC client in Python
2 stars 5 forks source link

args variable not initialized correctly #7

Closed theoreticalbts closed 6 years ago

theoreticalbts commented 6 years ago

Copy-pasting from https://github.com/steemit/tinman/issues/26 :

(tinman) syncad@lnx-ubuntu3:~/src/tinman$ tinman snapshot -s 127.0.0.1:8080 -o snapshot.json
Traceback (most recent call last):
  File "/home/syncad/opt/python-3.6.3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/syncad/opt/python-3.6.3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/syncad/src/tinman/tinman/__main__.py", line 4, in <module>
    main.sys_main()
  File "/home/syncad/src/tinman/tinman/main.py", line 45, in sys_main
    result = main(sys.argv)
  File "/home/syncad/src/tinman/tinman/main.py", line 42, in main
    return module.main(argv[1:])
  File "/home/syncad/src/tinman/tinman/snapshot.py", line 102, in main
    dump_dgpo(steemd, outfile)
  File "/home/syncad/src/tinman/tinman/snapshot.py", line 82, in dump_dgpo
    dgpo = steemd.database_api.get_dynamic_global_properties(x=None)
  File "/home/syncad/src/tinman/tinman/simple_steem_client/simple_steem_client/client.py", line 217, in __call__
    method_kwargs=kwargs,
  File "/home/syncad/src/tinman/tinman/simple_steem_client/simple_steem_client/client.py", line 137, in rpc_call
    ("params", [api, method, args]),
UnboundLocalError: local variable 'args' referenced before assignment
(tinman) syncad@lnx-ubuntu3:~/src/tinman$ 
youkaicountry commented 6 years ago

Resolved.