diff demo.py @ 1650:a4db6067814a

cleanup
author Richard Jones <richard@users.sourceforge.net>
date Fri, 16 May 2003 01:44:43 +0000
parents ccabdc2055cf
children 016e63bb9481
line wrap: on
line diff
--- a/demo.py	Sun May 11 23:13:51 2003 +0000
+++ b/demo.py	Fri May 16 01:44:43 2003 +0000
@@ -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 @@
 
 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

Roundup Issue Tracker: http://roundup-tracker.org/