Skip to content

Commit 9e7246e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b1ef829 commit 9e7246e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drf_standardized_errors/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def user_settings(self) -> Dict[str, Any]:
3232

3333
def __getattr__(self, attr: str) -> Any:
3434
if attr not in self.defaults:
35-
raise AttributeError("Invalid API setting: '%s'" % attr)
35+
raise AttributeError(f"Invalid API setting: '{attr}'")
3636

3737
try:
3838
# Check if present in user settings

0 commit comments

Comments
 (0)