Skip to content

Commit 7e3b12c

Browse files
author
Richard Jones
committed
handle non-existant demo dir (thanks Ollie Rutherfurd)
1 parent be4c9e1 commit 7e3b12c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4-
2003-??-?? 0.6.0
4+
2003-05-?? 0.6.0
55
Fixed:
6+
- handle non-existant demo dir (thanks Ollie Rutherfurd)
67
- strip whitespace from Role names so "User, Admin" will work
78

89

demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Copyright (c) 2003 Richard Jones ([email protected])
44
#
5-
# $Id: demo.py,v 1.1 2003-05-09 05:04:33 richard Exp $
5+
# $Id: demo.py,v 1.2 2003-05-11 07:33:55 richard Exp $
66

77
import sys, os, string, re, urlparse
88
import shutil, socket, errno, BaseHTTPServer
@@ -11,7 +11,8 @@
1111
def install_demo(home):
1212
# create the instance
1313
try:
14-
shutil.rmtree(home)
14+
if os.path.exists(home):
15+
shutil.rmtree(home)
1516
except os.error, error:
1617
if error.errno != errno.ENOENT:
1718
raise

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Will Partain,
7575
Ewout Prangsma,
7676
Bernhard Reiter,
7777
John P. Rouillard,
78+
Ollie Rutherfurd,
7879
Florian Schulze,
7980
Dougal Scott,
8081
Stefan Seefeld,

0 commit comments

Comments
 (0)