Skip to content

Commit

Permalink
Fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Nov 7, 2024
1 parent 3e9a1c6 commit b1a59b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ralph/assets/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ralph.assets.api import serializers
from ralph.assets.api.filters import NetworkableObjectFilters
from ralph.assets.models import BaseObject
from ralph.data_center.models import Cluster, DataCenterAsset, DCHost
from ralph.data_center.models import Cluster, DataCenterAsset
from ralph.lib.api.utils import renderer_classes_without_form
from ralph.licences.api import BaseObjectLicenceViewSet
from ralph.licences.models import BaseObjectLicence
Expand Down Expand Up @@ -317,7 +317,7 @@ def get_serializer_class(self, *args, **kwargs):
elif isinstance(obj_, Cluster):
from ralph.data_center.api.serializers import ClusterSerializer
return ClusterSerializer
except AssertionError: # for some reason when opening browsable api this raises exception
except AssertionError: # for some reason when opening browsable api this raises
pass
return serializers.DCHostSerializer

Expand Down

0 comments on commit b1a59b1

Please sign in to comment.