Skip to content

Commit d787fbb

Browse files
committed
handle local bucketing errors
1 parent 5e5ced2 commit d787fbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

devcycle_python_sdk/managers/config_manager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from devcycle_python_sdk.api.config_client import ConfigAPIClient
1111
from devcycle_python_sdk.api.local_bucketing import LocalBucketing
1212
from devcycle_python_sdk.exceptions import (
13-
CloudClientUnauthorizedError,
14-
CloudClientError,
13+
APIClientError,
14+
APIClientUnauthorizedError,
1515
)
1616
from wsgiref.handlers import format_date_time
1717
from devcycle_python_sdk.options import DevCycleLocalOptions
@@ -101,11 +101,11 @@ def _get_config(self, last_modified: Optional[float] = None):
101101
logger.warning(
102102
f"DevCycle: Error received from on_client_initialized callback: {str(e)}"
103103
)
104-
except CloudClientError as e:
104+
except APIClientError as e:
105105
logger.warning(f"DevCycle: Config fetch failed. Status: {str(e)}")
106-
except CloudClientUnauthorizedError:
106+
except APIClientUnauthorizedError:
107107
logger.error(
108-
"DevCycle: Unauthorized to get config. Aborting config polling."
108+
"DevCycle: Error initializing DevCycle: Invalid SDK key provided."
109109
)
110110
self._polling_enabled = False
111111

0 commit comments

Comments
 (0)