Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

'bulk_compressed_size()' method of BulkData object spews KeyError on use #87

Open
z33kz33k opened this issue Dec 23, 2022 · 0 comments
Open

Comments

@z33kz33k
Copy link

z33kz33k commented Dec 23, 2022

Steps to reproduce:

import scrython
bd = scrython.BulkData()
# this works
bd.bulk_name(0)
'Oracle Cards'
# this doesn't
bd.bulk_compressed_size(0, True)  # these are correct args according to help()
Traceback (most recent call last):
  File "/snap/pycharm-community/310/plugins/python-ce/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "<input>", line 1, in <module>
  File "/home/[...SNIP!...]/venv/lib/python3.10/site-packages/scrython/bulk_data/bulk_data.py", line 153, in bulk_compressed_size
    super(BulkData, self)._checkForTupleKey('data', num, 'compressed_size')
  File "/home/[...SNIP!...]/venv/lib/python3.10/site-packages/scrython/foundation.py", line 73, in _checkForTupleKey
    raise KeyError('This tuple has no key \'{}\''.format(key))
KeyError: "This tuple has no key 'compressed_size'"

I checked every other 'bulk_' method and all of them work without hiccups.

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

No branches or pull requests

1 participant