jbaiter / zotero-cli

Command-line interface for Zotero
MIT License
274 stars 41 forks source link

edit-note error #22

Closed rafaqz closed 7 years ago

rafaqz commented 7 years ago

$ zotcli edit-note CQSG3NYB

Traceback (most recent call last): File "/usr/bin/zotcli", line 11, in load_entry_point('zotero-cli==0.3.0', 'console_scripts', 'zotcli')() File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in call return self.main(args, kwargs) File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(args, *kwargs) File "/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), args, *kwargs) File "/usr/lib/python3.6/site-packages/zotero_cli/cli.py", line 260, in edit_note note = pick_note(ctx.obj, item_id, note_num) File "/usr/lib/python3.6/site-packages/zotero_cli/cli.py", line 284, in pick_note notes = tuple(zot.notes(item_id)) File "/usr/lib/python3.6/site-packages/zotero_cli/backend.py", line 210, in notes notes = self._zot.children(item_id, itemType="note") File "/usr/lib/python3.6/site-packages/pyzotero/zotero.py", line 128, in wrapped_f retrieved = self._retrieve_data(func(self, args)) File "/usr/lib/python3.6/site-packages/pyzotero/zotero.py", line 588, in children i=item.upper()) AttributeError: 'NoneType' object has no attribute 'upper'