Error testing the example code
Opened this issue · 0 comments
masuta16 commented
amzsear 'Harry Potter' -p 2 -i 35 --output json
Traceback (most recent call last):
File "/home/osboxes/.local/bin/amzsear", line 11, in
sys.exit(run())
File "/home/osboxes/.local/lib/python3.5/site-packages/amzsear/cli/cli.py", line 26, in run
prod = out[args['item']]
File "/home/osboxes/.local/lib/python3.5/site-packages/amzsear/core/AmzSear.py", line 113, in getitem
return self.get(key, default=None, raise_error=True)
File "/home/osboxes/.local/lib/python3.5/site-packages/amzsear/core/AmzSear.py", line 144, in get
raise KeyError('The key %s is not a know index' % (repr(key)) )
KeyError: "The key '35' is not a know index"