Skip to content

Commit 9caa103

Browse files
Urgent fix
2 parents 7277831 + 4ede7bd commit 9caa103

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__info__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
"""Information variable used by modules on this package."""
2424

25-
__version__ = '1.2.0'
25+
__version__ = '1.2.1'
2626
__author__ = 'Matteo Guadrini'
2727
__email__ = '[email protected]'
2828
__homepage__ = 'https://github.com/MatteoGuadrini/pyreports'

pyreports/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def send(self, server, _from, to, cc=None, bcc=None, subject=None, body='', auth
337337

338338
# Prepare attachment
339339
self.export()
340-
attach_file_name = self.output.file
340+
attach_file_name = self.output.data.file
341341
attach_file = open(attach_file_name, 'rb')
342342
payload = MIMEBase('application', 'octate-stream')
343343
payload.set_payload(attach_file.read())

0 commit comments

Comments
 (0)