Code

cleanup
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 16 May 2003 01:44:43 +0000 (01:44 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 16 May 2003 01:44:43 +0000 (01:44 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1717 57a73879-2fb5-44c3-a270-3262357dd7e2

demo.py

diff --git a/demo.py b/demo.py
index 0c601dcb72061ac39e39cb502039f004c5f48ee3..5637ca66e4fae5b3a1f38521b1b374c590d4e040 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.2 2003-05-11 07:33:55 richard Exp $
+# $Id: demo.py,v 1.3 2003-05-16 01:44:43 richard Exp $
 
 import sys, os, string, re, urlparse
 import shutil, socket, errno, BaseHTTPServer
@@ -10,12 +10,8 @@ from glob import glob
 
 def install_demo(home):
     # create the instance
-    try:
-        if os.path.exists(home):
-            shutil.rmtree(home)
-    except os.error, error:
-        if error.errno != errno.ENOENT:
-            raise
+    if os.path.exists(home):
+        shutil.rmtree(home)
     from roundup import init, instance, password
     init.install(home, os.path.join('templates', 'classic'))
     # don't have email flying around