Skip to content

Instantly share code, notes, and snippets.

@emre

emre/pywit.py Secret

Created October 31, 2018 07:15
Show Gist options
  • Save emre/374edd47f340c32c7a54d38f016c7c71 to your computer and use it in GitHub Desktop.
Save emre/374edd47f340c32c7a54d38f016c7c71 to your computer and use it in GitHub Desktop.
pywit
(pywit) ➜ /tmp pywit update
Traceback (most recent call last):
File "/Users/emre/Environments/pywit/bin/pywit", line 11, in <module>
sys.exit(pywit())
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/emre/Environments/pywit/lib/python3.6/site-packages/pywit/cli.py", line 88, in update
conf.check_config(self.conf.d['owner'])
NameError: name 'self' is not defined
@gitschwifty
Copy link

I've found and fixed these calls in a commit to dev branch, will merge after figuring out the witness_set_properties call you mentioned. All were self calls caused by moving code from original cli.py to pywallet.py then setting up click commands in cli.py with the pywallet code as boilerplate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment