Skip to content
Browse files

Prevent unhandled error when sighup'ing without specified category

  • Loading branch information...
1 parent 496f457 commit c4aa1181781ff426c7df06009a80ef9f22860a55 Amber Yust committed Dec 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 master/buildbot/process/builder.py
View
4 master/buildbot/process/builder.py
@@ -472,8 +472,8 @@ def compareToSetup(self, setup):
diffs.append('logHorizon changed from %s to %s' % (self.logHorizon, setup['logHorizon']))
if setup['eventHorizon'] != self.eventHorizon:
diffs.append('eventHorizon changed from %s to %s' % (self.eventHorizon, setup['eventHorizon']))
- if setup['category'] != self.category:
- diffs.append('category changed from %r to %r' % (self.category, setup['category']))
+ if setup.get('category', None) != self.category:
+ diffs.append('category changed from %r to %r' % (self.category, setup.get('category', None)))
return diffs

0 comments on commit c4aa118

Please sign in to comment.
Something went wrong with that request. Please try again.