Permalink
Browse files

http://code.google.com/p/pytyrant/issues/detail?id=1

  • Loading branch information...
1 parent 727bf8d commit 32618ec0a7a05bad587064e20adfb80cb7bd1860 @etrepum etrepum committed Mar 26, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 pytyrant.py
View
@@ -493,8 +493,10 @@ def stat(self):
def _misc(self, func, opts, args):
# tcrdbmisc opts are RDBMONOULOG
socksend(self.sock, _t1FN(C.misc, func, opts, args))
- socksuccess(self.sock)
- numrecs = socklen(self.sock)
+ try:
+ socksuccess(self.sock)
+ finally:
+ numrecs = socklen(self.sock)
for i in xrange(numrecs):
yield sockstr(self.sock)

0 comments on commit 32618ec

Please sign in to comment.