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

TypeError: 'dict' object is not callable #528

Open
shazianusrat opened this issue Oct 5, 2017 · 0 comments
Open

TypeError: 'dict' object is not callable #528

shazianusrat opened this issue Oct 5, 2017 · 0 comments

Comments

@shazianusrat
Copy link

shazianusrat commented Oct 5, 2017

Following is my function in my code:

         def getData(self, bucket, key, nestedKey = None):
		expiry = None
		bucket_store = self.mClient.bucket(bucket)
		print self.mClient.get_buckets()
		returnKey = bucket_store.get(key)
		currenttime = datetime.datetime.now()
		returnData = returnKey.data
		if returnData != None:
			print "Empty return Data"
			if nestedKey != None and nestedKey in returnData:
				returnData = returnData[nestedKey]
		print "Getting Data for key : ",key," from bucket : ",bucket," wtih nested key : ",nestedKey
		print "Result : ",returnData," \n"
		return returnData

I get an error at "returnData = returnKey.data"

Any word for it? I am using version 2.7.5 for riak python client.

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