Changeset 3172

Show
Ignore:
Timestamp:
04/19/07 16:29:16 (18 years ago)
Author:
jerome
Message:

Catches an AttributeError? when the value is not defined in pykota.conf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r3169 r3172  
    528528        """Returns value for user name case: upper, lower or native""" 
    529529        validvalues = [ "upper", "lower", "native" ] 
    530         value = self.getGlobalOption("usernamecase", ignore=1).strip().lower() 
    531         if value is None : 
     530        try : 
     531            value = self.getGlobalOption("usernamecase", ignore=1).strip().lower() 
     532        except AttributeError :     
    532533            value = "native" 
    533534        if value not in validvalues :