Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooker/utils/notebook_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _send_email(from_email: str, to_email: str, result: Union[NotebookResultComp
tmp_dir = None
try:
if isinstance(result, NotebookResultComplete):
tmp_dir = tempfile.mkdtemp(dir=os.path.expanduser("~"))
tmp_dir = tempfile.mkdtemp()
# Attach PDF output to the email. Has to be saved to disk temporarily for the mail API to work.
report_name = result.report_name.replace(os.sep, TEMPLATE_DIR_SEPARATOR)
if isinstance(report_name, bytes):
Expand Down