master
blank X 1 year ago
parent d05e04e73a
commit dc1d036f02
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 2
      autoytarchive/cappedio.py

@ -14,7 +14,7 @@ class CappedBufferedReader(io.BufferedReader):
return super().read(size)
def seek(self, offset, whence=os.SEEK_SET):
if self.capped_size is not NOne:
if self.capped_size is not None:
if offset == 0 and whence == os.SEEK_END:
if self.capped_size < 0:
offset = 0

Loading…
Cancel
Save