Skip to content

Commit 194e827

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix exception handling in hashmap IndexView"
2 parents f4067c0 + 1d037c6 commit 194e827

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • cloudkittydashboard/dashboards/admin/hashmap

cloudkittydashboard/dashboards/admin/hashmap/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# under the License.
1414

1515

16+
from cloudkittyclient import exc as ck_exc
1617
from django.urls import reverse
1718
from django.urls import reverse_lazy
1819
from django.utils.translation import gettext_lazy as _
@@ -41,7 +42,7 @@ def get_data(self):
4142
try:
4243
service = manager.info.get_metric(metric_name=s['name'])
4344
unit = service['unit']
44-
except exceptions.NotFound:
45+
except (exceptions.NotFound, ck_exc.HTTPNotFound):
4546
unit = "-"
4647

4748
list_services.append({

0 commit comments

Comments
 (0)