From 4f18581fa79376df6d3ac84628d2c40602f05412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 6 Jan 2021 21:07:37 +0100 Subject: [PATCH] minor refactor for data --- README.md | 1 + setup.py | 2 +- tempsdb/iterators.pyx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e2ffc1e..a148c6e 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Then copy your resulting wheel and install it via pip on the target system. * older TempsDB databases that do not support varlens will be updated upon opening * added metadata support for databases * a flush will be done before re-enabling mmap +* bugfix to read archive data ## v0.5.3 diff --git a/setup.py b/setup.py index 5f20851..93f8c04 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ ext_modules = build([Multibuild('tempsdb', find_pyx('tempsdb'), **cythonize_kwargs) setup(name='tempsdb', - version='0.5.4a4', + version='0.5.4b1', packages=find_packages(include=['tempsdb', 'tempsdb.*']), install_requires=['satella>=2.14.24', 'ujson'], ext_modules=ext_modules, diff --git a/tempsdb/iterators.pyx b/tempsdb/iterators.pyx index b7d5d11..28d5633 100644 --- a/tempsdb/iterators.pyx +++ b/tempsdb/iterators.pyx @@ -141,7 +141,7 @@ cdef class Iterator: elif self.i == self.limit: self.get_next() return self.current_chunk.get_piece_at(self.i) - except StopIteration: + except (StopIteration, IndexError): return None finally: self.i += 1 -- GitLab