diff --git a/apimanager/metrics/views.py b/apimanager/metrics/views.py index c9ae87e2..5b07a3aa 100644 --- a/apimanager/metrics/views.py +++ b/apimanager/metrics/views.py @@ -143,6 +143,10 @@ 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, metrics['message']) + except: + error_once_only(self.request, 'Unknown Error') return metrics def get_context_data(self, **kwargs):