diff --git a/apps/accounts/api/account/account.py b/apps/accounts/api/account/account.py index a594493a6..d12f11549 100644 --- a/apps/accounts/api/account/account.py +++ b/apps/accounts/api/account/account.py @@ -43,7 +43,7 @@ class AccountViewSet(OrgBulkModelViewSet): asset = get_object_or_404(Asset, pk=asset_id) accounts = asset.accounts.all() else: - accounts = [] + accounts = Account.objects.none() accounts = self.filter_queryset(accounts) serializer = serializers.AccountSerializer(accounts, many=True) return Response(data=serializer.data) diff --git a/apps/common/utils/connection.py b/apps/common/utils/connection.py index 95e827299..cbe961968 100644 --- a/apps/common/utils/connection.py +++ b/apps/common/utils/connection.py @@ -108,7 +108,7 @@ class Subscription: try: self.sub.close() except Exception as e: - logger.error('Unsubscribe msg error: {}'.format(e)) + logger.debug('Unsubscribe msg error: {}'.format(e)) def retry(self, _next, error, complete): logger.info('Retry subscribe channel: {}'.format(self.ch))