diff options
Diffstat (limited to 'designate/worker/tasks/zone.py')
-rw-r--r-- | designate/worker/tasks/zone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/designate/worker/tasks/zone.py b/designate/worker/tasks/zone.py index 5b40a8a9..71eb7dec 100644 --- a/designate/worker/tasks/zone.py +++ b/designate/worker/tasks/zone.py @@ -162,7 +162,7 @@ class ZoneActor(base.Task, ThresholdMixin): def _validate_action(self, action): if action not in ['CREATE', 'UPDATE', 'DELETE']: - raise Exception('Bad Action') + raise exceptions.BadAction('Unexpected action: %s' % action) def _execute(self): results = self.executor.run([ |