Skip to content

Commit d97975f

Browse files
committed
fixes linting
1 parent 5f3e93b commit d97975f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

netboxlabs/diode/sdk/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def ingest(
238238
self._authenticate()
239239
continue
240240
raise DiodeClientError(err) from err
241+
return RuntimeError("Max retries exceeded")
241242

242243
def _setup_sentry(self, dsn: str, traces_sample_rate: float, profiles_sample_rate: float):
243244
sentry_sdk.init(

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import os
66
from unittest import mock
7-
from unittest.mock import patch, MagicMock
7+
from unittest.mock import MagicMock, patch
88

99
import grpc
1010
import pytest
@@ -546,4 +546,4 @@ def test_ingest_retries_on_unauthenticated_error(mock_diode_authentication):
546546
client.ingest(entities=[])
547547

548548
# Verify that the Ingest method was called the expected number of times
549-
assert mock_stub.Ingest.call_count == client._max_auth_retries
549+
assert mock_stub.Ingest.call_count == client._max_auth_retries

0 commit comments

Comments
 (0)