From: richard Date: Mon, 28 Jul 2003 23:17:50 +0000 (+0000) Subject: oops X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=191944f21e9fff7817ba52a28f2e3691681f9d46;p=roundup.git oops git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1794 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/demo.py b/demo.py index c840be6..b047e84 100644 --- a/demo.py +++ b/demo.py @@ -2,7 +2,7 @@ # # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net) # -# $Id: demo.py,v 1.4 2003-07-27 23:16:33 richard Exp $ +# $Id: demo.py,v 1.5 2003-07-28 23:17:50 richard Exp $ import sys, os, string, re, urlparse import shutil, socket, errno, BaseHTTPServer @@ -16,7 +16,11 @@ def install_demo(home): init.install(home, os.path.join('templates', 'classic')) # don't have email flying around os.remove(os.path.join(home, 'detectors', 'nosyreaction.py')) - os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc')) + try: + os.remove(os.path.join(home, 'detectors', 'nosyreaction.pyc')) + except os.error, error: + if error.errno != errno.ENOENT: + raise init.write_select_db(home, 'anydbm') # figure basic params for server