From a4ecf22349e2e4dea16fedd4fe2151a24eb28fa0 Mon Sep 17 00:00:00 2001 From: Steve Lacey Date: Thu, 12 Jan 2023 18:54:58 +0800 Subject: [PATCH] Swap out reference to legacy error attr for 4xx --- worf/views/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worf/views/base.py b/worf/views/base.py index fdf4667..c2e24db 100644 --- a/worf/views/base.py +++ b/worf/views/base.py @@ -129,7 +129,7 @@ def check_permissions(self): if settings.WORF_DEBUG: raise PermissionsError( f"Permission check {perm.__module__}.{perm.__name__} raised {e.__class__.__name__}. " - f"You'd normally see a {e.status} here but WORF_DEBUG=True." + f"You'd normally see a 4xx here but WORF_DEBUG=True." ) from e raise e