Skip to content

Commit

Permalink
Fixed|Host: Rebuild times can be omitted from configuration
Browse files Browse the repository at this point in the history
IssueID #1948
  • Loading branch information
skyjake committed Jan 23, 2015
1 parent 1530dcb commit e3621a6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions doomsday/host/doomsday-host
Expand Up @@ -110,8 +110,12 @@ def parseConfig(fn):
if opt.parentNode.tagName == u'hostconfig':
commonOptions.append(getContent(opt))

rebuildTimes = \
parseRebuildTimes(cfg.getElementsByTagName('rebuildTimes')[0])
# Rebuild times is an optional setting.
try:
rebuildTimes = \
parseRebuildTimes(cfg.getElementsByTagName('rebuildTimes')[0])
except IndexError:
rebuildTimes = []

doomsdayBinary = getContent(cfg.getElementsByTagName('doomsday')[0])
try:
Expand Down Expand Up @@ -368,9 +372,9 @@ def main():
logCleanup()

except Exception, x:
print x
#import traceback
#traceback.print_exc()
#print x
import traceback
traceback.print_exc()

# We're done.
endInstance()
Expand Down

0 comments on commit e3621a6

Please sign in to comment.