diff --git a/apimanager/metrics/views.py b/apimanager/metrics/views.py index c9ae87e2..d7623a35 100644 --- a/apimanager/metrics/views.py +++ b/apimanager/metrics/views.py @@ -143,6 +143,8 @@ def get_metrics(self, cleaned_data): metrics = self.to_django(metrics['metrics']) except APIError as err: error_once_only(self.request, err) + except KeyError as err: + error_once_only(self.request, err) return metrics def get_context_data(self, **kwargs):