mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-05 16:24:20 +01:00
Fix #690
This commit is contained in:
parent
1e39c5ee21
commit
faff1ecbdf
1 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,10 @@ def sendmail(recipient='', subject='', attachments=[], body=''):
|
|||
pt.write(open(attachments[0], 'rb').read())
|
||||
pt.close()
|
||||
|
||||
subprocess.check_call('open -t '+pt.name, shell=True)
|
||||
try:
|
||||
subprocess.call('open -t '+pt.name, shell=True)
|
||||
except: # For some reason making this call leads to a system call interrupted error
|
||||
pass
|
||||
else:
|
||||
body = '"' + body.replace('"', '\\"') + '"'
|
||||
subject = '"' + subject.replace('"', '\\"') + '"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue