From 10ffc1dbbc3c4af0de9370a12ff433c9fa119d43 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 16 May 2003 01:44:43 +0000 Subject: [PATCH] cleanup git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1717 57a73879-2fb5-44c3-a270-3262357dd7e2 --- demo.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/demo.py b/demo.py index 0c601dc..5637ca6 100644 --- 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 -- 2.30.2