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

AttributeError: 'int' object has no attribute 'iteritems' #14

Open
yhwei89 opened this issue Jul 10, 2020 · 0 comments
Open

AttributeError: 'int' object has no attribute 'iteritems' #14

yhwei89 opened this issue Jul 10, 2020 · 0 comments

Comments

@yhwei89
Copy link

yhwei89 commented Jul 10, 2020

Traceback (most recent call last):
File "redis_monitor.py", line 88, in run
self.LogInfo(redis_info, current_time, self.last)
File "redis_monitor.py", line 185, in LogInfo
expired, evicted, hit_rate, commands, used_memory, peak_memory)
File "/kuyu/soft/redis-monitor-master/src/dataprovider/redisprovider.py", line 33, in save_keys_Info
self.conn.zadd(server +':'+ rediskey, score,data)
File "/usr/lib/python2.7/site-packages/redis/client.py", line 2685, in zadd
for pair in iteritems(mapping):
File "/usr/lib/python2.7/site-packages/redis/_compat.py", line 133, in iteritems
return x.iteritems()
AttributeError: 'int' object has no attribute 'iteritems'

What happened?

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