Permalink
Browse files

Merge pull request #40 from eventbrite/master

any time you add a switch through the UI, the logging code will throw an exception
  • Loading branch information...
2 parents 3be5c38 + 8bb05dc commit c9bdec3140d17ae1bbf003ed838388e94888e39d @dcramer dcramer committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 gargoyle/nexus_modules.py
@@ -143,7 +143,7 @@ def add(self, request):
raise GargoyleException("Switch with key %s already exists" % key)
logger.info('Switch %r added (%%s)' % switch.key,
- ', '.join('%s=%r' % (k, getattr(switch, k)) for k, v in sorted('key', 'label', 'description')))
+ ', '.join('%s=%r' % (k, getattr(switch, k)) for k in sorted(('key', 'label', 'description', ))))
signals.switch_added.send(
sender=self,

0 comments on commit c9bdec3

Please sign in to comment.