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

bug #37

Open
mxd008 opened this issue May 19, 2021 · 1 comment
Open

bug #37

mxd008 opened this issue May 19, 2021 · 1 comment

Comments

@mxd008
Copy link

mxd008 commented May 19, 2021

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from nodb import NoDB
nodb = NoDB("my-s3-bucket")
Traceback (most recent call last):
File "", line 1, in
TypeError: NoDB() takes no arguments
nodb = NoDB('my-s3-bucket')
Traceback (most recent call last):
File "", line 1, in
TypeError: NoDB() takes no arguments
nodb = NoDB()
nodb.index = "name"
user = {"name": "Jeff", "age": 19}
nodb.save(user)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\nodb_init_.py", line 63, in save
real_index = self.get_object_index(obj, self.index)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\nodb_init
.py", line 241, in _get_object_index
if obj.has_key(index):
AttributeError: 'dict' object has no attribute 'has_key'

@nephlm
Copy link
Contributor

nephlm commented May 19, 2021

I'm not sure which version you're running,but the current version of the code in the master branch has resolved that issue. I believe it's been fixed since version 0.4.0.

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

2 participants