Permalink
Browse files

Added check for details redis client (newer client can return a dict).

  • Loading branch information...
1 parent 3db855b commit bb50ab8954196e4f84f72abc64c84eff13aedec1 @ionelmc committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redisboard/views.py
View
@@ -38,7 +38,7 @@ def _get_key_info(conn, key):
return {
'type': conn.type(key),
'name': key,
- 'details': dict(
+ 'details': details if isinstance(details, dict) else dict(
_fixup_pair(i.split(':')) for i in details.split() if ':' in i
),
'length': obj_length,

0 comments on commit bb50ab8

Please sign in to comment.