diff --git a/apimanager/metrics/views.py b/apimanager/metrics/views.py index d7623a35..5b07a3aa 100644 --- a/apimanager/metrics/views.py +++ b/apimanager/metrics/views.py @@ -144,7 +144,9 @@ def get_metrics(self, cleaned_data): except APIError as err: error_once_only(self.request, err) except KeyError as err: - error_once_only(self.request, err) + error_once_only(self.request, metrics['message']) + except: + error_once_only(self.request, 'Unknown Error') return metrics def get_context_data(self, **kwargs):