mosso - cloud storage file read error

Issue #97 wontfix
Aaron Ghent created an issue

mosso.py : line 279

got an error right here trying to add num_bytes (which == None)

instead of self._pos + num_bytes

(self._pos + int(num_bytes or 0))

def read(self, num_bytes=None): if self._pos == self._get_size(): return None if (self._pos + int(num_bytes or 0)) > self._get_size(): # <----- num_bytes = self._get_size() - self._pos data = self.file.read(size=num_bytes or -1, offset=self._pos) self._pos += len(data) return data

Comments (2)

  1. Log in to comment