Skip to content

Commit

Permalink
Error handling for KPI Dashboard of API Manager if CanGetConsumers, C…
Browse files Browse the repository at this point in the history
…anGetAnyUser is not present OpenBankProject#65
  • Loading branch information
PengfeiLi0218 committed Jan 28, 2019
1 parent 18dbaee commit 8a8d5ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apimanager/metrics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8a8d5ce

Please sign in to comment.