We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d14c1 commit c3c76bfCopy full SHA for c3c76bf
1 file changed
emails/store/file.py
@@ -190,8 +190,10 @@ def fetch(self) -> None:
190
def get_data(self) -> bytes | str:
191
self.fetch()
192
data = self._data
193
- if data is None or isinstance(data, (str, bytes)):
194
- return data or ''
+ if data is None:
+ return ''
195
+ if isinstance(data, (str, bytes)):
196
+ return data
197
return data.read()
198
199
def set_data(self, v: bytes | str | IO[bytes] | None) -> None:
0 commit comments