Skip to content

Commit

Permalink
🚨(project) remove blind except ruff escape warnings
Browse files Browse the repository at this point in the history
`flake8-blind-except` from Ruff now allows to raise from a broad exception,
making the escapes unused directives (see
astral-sh/ruff#11131).
Removing unused directives.
  • Loading branch information
wilbrdt committed Apr 30, 2024
1 parent 34d32cd commit 7036395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ralph/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def configure_logging() -> None:
"""Set up Ralph logging configuration."""
try:
dictConfig(settings.LOGGING)
except Exception as error: # noqa: BLE001
except Exception as error:
raise ConfigurationException("Improperly configured logging") from error
2 changes: 1 addition & 1 deletion src/ralph/models/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_value(self, data: Union[Dict, str]) -> Union[Dict, str]:
try:
for transformer in self.transformers:
data = transformer(data)
except Exception as err: # noqa: BLE001
except Exception as err:
msg = f"Failed to get the transformed value for field: {self.src}"
raise ConversionException(msg) from err
return data
Expand Down

0 comments on commit 7036395

Please sign in to comment.