Skip to contentSkip to conversation

pybind: trivial fix of missing argument

PATCH Applied Henry C Chang 2 participants 2 messages Dec 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pybind: trivial fix of missing argument

---
 src/pybind/rados.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/pybind/rados.py +1 -1
index 3d00938..e43cb04 100755
@@ -450,7 +450,7 @@ written." % (self.name, ret, length))
         ret = self.librados.rados_read(self.io, c_char_p(key), ret_buf,
                 c_size_t(length), c_uint64(offset))
         if ret < 0:
-            raise make_ex("Ioctx.read(%s): failed to read %s" % (self.name, key))
+            raise make_ex(ret, "Ioctx.read(%s): failed to read %s" % (self.name, key))
         return ctypes.string_at(ret_buf, ret)
 
     def get_stats(self):
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 10 lines · Henry C Chang
---
  src/pybind/rados.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
src/pybind/rados.py +0 -0
index 3d00938..e43cb04 100755

src/pybind/rados.py written." % (self.name, ret, length)) · line 456

Quoted 8 lines
src/pybind/rados.py +1 -1
@@ -450,7 +450,7 @@ written." % (self.name, ret, length))
          ret = self.librados.rados_read(self.io, c_char_p(key), ret_buf,
                  c_size_t(length), c_uint64(offset))
          if ret<  0:
-            raise make_ex("Ioctx.read(%s): failed to read %s" % (self.name, key))
+            raise make_ex(ret, "Ioctx.read(%s): failed to read %s" % (self.name, key))
          return ctypes.string_at(ret_buf, ret)
 
      def get_stats(self):

Applied, thanks!