Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError on JSON Export #48

Open
mvrahden opened this issue Sep 5, 2024 · 1 comment
Open

TypeError on JSON Export #48

mvrahden opened this issue Sep 5, 2024 · 1 comment

Comments

@mvrahden
Copy link

mvrahden commented Sep 5, 2024

I get a TypeError on cktap json command:

This is the output:

$ cktap json
Enter spending code: 
Traceback (most recent call last):
  File "/opt/homebrew/bin/cktap", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/lib/python3.10/site-packages/cktap/cli.py", line 813, in json_dump
    rv['account'] = int(path_comps[-1][:-1])
TypeError: 'int' object is not subscriptable
$ cktap version
1.0.3
@scgbckbone
Copy link
Contributor

great catch, thank you

fix incoming #50

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants