changeset 3893:3be52acb3f43

server.standalone script: fix check for failing import of wikiserverconfig module
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Jul 2008 17:43:54 +0200
parents 85c7b3b9c48c
children 76c3f5181b43
files MoinMoin/script/server/standalone.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/server/standalone.py	Sun Jul 20 17:00:07 2008 +0200
+++ b/MoinMoin/script/server/standalone.py	Sun Jul 20 17:43:54 2008 +0200
@@ -99,8 +99,8 @@
                     sys.path.insert(0, self.options.config_dir)
                 from wikiserverconfig import Config
             except ImportError, err:
-                if 'Config' in str(err):
-                    # we are unable to import Config
+                if 'wikiserverconfig' in str(err):
+                    # we are unable to import from wikiserverconfig module
                     Config = DefaultConfig
                 else:
                     # some other import went wrong