Changeset 927 for branches/1.1


Ignore:
Timestamp:
07/25/13 14:02:52 (7 years ago)
Author:
ramonb
Message:

jobmond/jobmond.py:

  • prevent NoOptionError? Exception to occur when BATCH_HOST_TRANSLATE is not set
  • closes #172
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/jobmond/jobmond.py

    r913 r927  
    607607    DETECT_TIME_DIFFS    = cfg.getboolean( 'DEFAULT', 'DETECT_TIME_DIFFS' )
    608608
    609     BATCH_HOST_TRANSLATE = getlist( cfg.get( 'DEFAULT', 'BATCH_HOST_TRANSLATE' ) )
     609    try:
     610        BATCH_HOST_TRANSLATE = getlist( cfg.get( 'DEFAULT', 'BATCH_HOST_TRANSLATE' ) )
     611
     612    except ConfigParser.NoOptionError:
     613
     614        BATCH_HOST_TRANSLATE = [ ]
     615        pass
    610616
    611617    try:
Note: See TracChangeset for help on using the changeset viewer.