Skip to content

Commit

Permalink
chore: disable a few new pylint warnings for code that's been around …
Browse files Browse the repository at this point in the history
…for a while (#236)
  • Loading branch information
sighphyre authored Feb 23, 2023
1 parent 61c8c5a commit 6703bf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UnleashClient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def initialize_client(self, fetch_toggles: bool = True) -> None:
"""
# Only perform initialization steps if client is not initialized.
if not self.is_initialized:
# pylint: disable=no-else-raise
try:
# Setup
metrics_args = {
Expand Down Expand Up @@ -338,6 +339,7 @@ def _do_instance_check(self, multiple_instance_mode):
if identifier in INSTANCES:
msg = f"You already have {INSTANCES.count(identifier)} instance(s) configured for this config: {identifier}, please double check the code where this client is being instantiated."
if multiple_instance_mode == InstanceAllowType.BLOCK:
# pylint: disable=broad-exception-raised
raise Exception(msg)
if multiple_instance_mode == InstanceAllowType.WARN:
LOGGER.error(msg)
Expand Down
1 change: 1 addition & 0 deletions UnleashClient/api/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_feature_toggles(url: str,
if resp.status_code not in [200, 304]:
log_resp_info(resp)
LOGGER.warning("Unleash Client feature fetch failed due to unexpected HTTP status code.")
# pylint: disable=broad-exception-raised
raise Exception("Unleash Client feature fetch failed!")

etag = ''
Expand Down

0 comments on commit 6703bf8

Please sign in to comment.