Skip to content

Commit b72520a

Browse files
committed
Fix #22 fails with TypeError if a key containing integer was removed.
1 parent f9117d9 commit b72520a

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
ChangeLog for RMA
22
--------------------
3+
- 0.1.12
4+
5+
* Fix fails with TypeError if a key containing integer was removed.
6+
Closes issue #22.
7+
* Add more info to global rule description.
8+
39
- 0.1.11
410

511
* Fix unknown command 'DEBUG' issue with AWS's ElastiCache.

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ understand other data from this tools:
105105
The one of interesting things here is "RedisDB key space overhead". The
106106
amount of memory used Redis to store key space data. If you have lots of
107107
keys in your Redis instance this actually shows your overhead for this.
108+
Keep in mind that part of data such as total keys in db or key space overhead
109+
shows data for selected db. But statistics started with ``Info`` or ``Config``
110+
keywords is server based.
108111

109112
Key types ('scanner' behaviour)
110113
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rma/__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
num_version = (0, 1, 11)
1+
num_version = (0, 1, 12)
22
version = '.'.join([str(num) for num in num_version])
33

44
classifiers = [

rma/rule/ValueString.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from tqdm import tqdm
44
from rma.redis import *
55
from rma.helpers import pref_encoding, make_total_row, progress_iterator
6-
from redis.exceptions import RedisError
6+
from redis.exceptions import RedisError, ResponseError
77

88

99
class RealStringEntry(object):
@@ -17,6 +17,8 @@ def get_int_encoded_bytes(redis, key_name):
1717
return size_of_pointer_fn()
1818
except ValueError:
1919
pass
20+
except ResponseError:
21+
pass
2022

2123
return size_of_pointer_fn()
2224

0 commit comments

Comments
 (0)