Code

oops
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 28 Jul 2003 23:17:50 +0000 (23:17 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 28 Jul 2003 23:17:50 +0000 (23:17 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1794 57a73879-2fb5-44c3-a270-3262357dd7e2

demo.py

diff --git a/demo.py b/demo.py
index c840be6ea4177ee35cf303ba2fee0986a58477bd..b047e843418c9d099117b49bdae17a08ed48e4fd 100644 (file)
--- a/demo.py
+++ b/demo.py
@@ -2,7 +2,7 @@
 #
 # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net)
 # 
-# $Id: demo.py,v 1.4 2003-07-27 23:16:33 richard Exp $
+# $Id: demo.py,v 1.5 2003-07-28 23:17:50 richard Exp $
 
 import sys, os, string, re, urlparse
 import shutil, socket, errno, BaseHTTPServer
@@ -16,7 +16,11 @@ def install_demo(home):
     init.install(home, os.path.join('templates', 'classic'))
     # don't have email flying around
     os.remove(os.path.join(home, 'detectors', 'nosyreaction.py'))
-    os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc'))
+    try:
+        os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc'))
+    except os.error, error:
+        if error.errno != errno.ENOENT:
+            raise
     init.write_select_db(home, 'anydbm')
 
     # figure basic params for server