From 3c5496061285adbf2a4d37b1b819b442ba3c6b4d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 10 Dec 2022 12:41:10 -0600 Subject: [PATCH] Fix error if no view supplements defined --- tailbone/views/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/master.py b/tailbone/views/master.py index 304494c3..3ae2be88 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -3883,7 +3883,7 @@ class MasterView(View): """ Iterate over all registered supplements for this master view. """ - supplements = self.request.registry.settings['tailbone_view_supplements'] + supplements = self.request.registry.settings.get('tailbone_view_supplements', []) route_prefix = self.get_route_prefix() if supplements and route_prefix in supplements: for cls in supplements[route_prefix]: