From faff1ecbdfdcb92030ed812d47530b0e1fd91c56 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 May 2008 09:12:14 -0700 Subject: [PATCH] Fix #690 --- src/calibre/utils/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/__init__.py b/src/calibre/utils/__init__.py index d1ea35c192..b2acb4f0ed 100644 --- a/src/calibre/utils/__init__.py +++ b/src/calibre/utils/__init__.py @@ -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('"', '\\"') + '"'