From 3a6270fe85c98aeadabb8f701d182f9a8816b779 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Mon, 11 Jan 2010 09:32:52 +0000
Subject: [PATCH] Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@520 29193198-4895-4776-b068-10539e920549
---
 gradint-build/src/synth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradint-build/src/synth.py b/gradint-build/src/synth.py
index c8d3840..2d5f1dc 100644
--- a/gradint-build/src/synth.py
+++ b/gradint-build/src/synth.py
@@ -767,7 +767,7 @@ class GeneralFileSynth(Synth):
     def makefile(self,lang,text):
         for l,c,f in extra_speech_tofile:
             if l==lang:
-                os.system(c % shell_escape(text))
+                if os.system(c % shell_escape(text)): raise Exception("Your extra_speech_tofile command failed")
                 fname = os.tempnam()+extsep+soundFileType(f)
                 if unix: os.system('mv "'+f+'" "'+fname+'"') # because os.rename() can throw an exception if renaming cross-device on some systems
                 else: os.rename(f,fname)
-- 
GitLab