Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericatkin committed Sep 12, 2024
1 parent 24f61d4 commit 09f9124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyramid/config/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 09f9124

Please sign in to comment.