workflows: read attachments as binaries (#36515)
This commit is contained in:
parent
3444d4bec8
commit
10d4451122
|
@ -191,7 +191,7 @@ class AttachmentEvolutionPart: #pylint: disable=C1001
|
|||
varname=varname)
|
||||
|
||||
def get_file_pointer(self):
|
||||
return open(self.filename)
|
||||
return open(self.filename, 'rb')
|
||||
|
||||
def __getstate__(self):
|
||||
odict = self.__dict__.copy()
|
||||
|
|
Loading…
Reference in New Issue