Skip to content

Commit 51ef671

Browse files
author
Richard Jones
committed
oops
1 parent 27a736b commit 51ef671

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo.py

Lines changed: 6 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.4 2003-07-27 23:16:33 richard Exp $
5+
# $Id: demo.py,v 1.5 2003-07-28 23:17:50 richard Exp $
66

77
import sys, os, string, re, urlparse
88
import shutil, socket, errno, BaseHTTPServer
@@ -16,7 +16,11 @@ def install_demo(home):
1616
init.install(home, os.path.join('templates', 'classic'))
1717
# don't have email flying around
1818
os.remove(os.path.join(home, 'detectors', 'nosyreaction.py'))
19-
os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc'))
19+
try:
20+
os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc'))
21+
except os.error, error:
22+
if error.errno != errno.ENOENT:
23+
raise
2024
init.write_select_db(home, 'anydbm')
2125

2226
# figure basic params for server

0 commit comments

Comments
 (0)