Changeset 121:9fd055676826

Show
Ignore:
Timestamp:
11/08/08 03:34:54 (3 years ago)
Author:
chris
Branch:
unix
Message:

handle missing log conf file better

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Config.py

    r118 r121  
    6767                        if(not os.path.exists(self.__config_dir)): 
    6868                                os.mkdir(self.__config_dir) 
    69                         sys.exit(0) 
     69                        sys.exit(1) 
    7070 
    7171                self.log                  = logging.getLogger('Config') 
     
    8383                        self.log.error("Configuration file [%s] not found" % self.__config_file) 
    8484                        self.log.error("See the example StormSiren.conf file in the examples directory") 
    85                         sys.exit(0) 
     85                        sys.exit(1) 
    8686 
    8787        def ___getConfigDir(self):