From 09f912446603a1d7aaf1a5e118c51ab2cb172700 Mon Sep 17 00:00:00 2001 From: Eric Atkin Date: Thu, 12 Sep 2024 15:14:56 -0600 Subject: [PATCH] Fix formatting --- src/pyramid/config/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyramid/config/views.py b/src/pyramid/config/views.py index fad5f7ff6..67e8b42f9 100644 --- a/src/pyramid/config/views.py +++ b/src/pyramid/config/views.py @@ -833,7 +833,8 @@ def wrapper(context, request): raise ValueError('Self is only allowed when view is a class') elif inspect.isfunction(context): raise ValueError( - 'context as function is only allowed when view is a class') + 'context as function is only allowed when view is a class' + ) if is_nonstr_iter(decorator): decorator = combine_decorators(*map(self.maybe_dotted, decorator))