From 8ec6a18cdc054c4c176211cc0fb846bc6cce3320 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 15 Nov 2015 20:51:09 -0600 Subject: [PATCH] Fix bug when 'edbob.permissions' setting is empty. Which, it ought to be forever, soon... --- tailbone/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/app.py b/tailbone/app.py index 2d2f86fe..0eb2590c 100644 --- a/tailbone/app.py +++ b/tailbone/app.py @@ -122,7 +122,7 @@ def make_pyramid_config(settings): # TODO: This can finally be removed once all CRUD/index views have been # converted to use the new master view etc. - for label, perms in settings.get('edbob.permissions'): + for label, perms in settings.get('edbob.permissions', []): groupkey = label.lower().replace(' ', '_') config.add_tailbone_permission_group(groupkey, label) for key, label in perms: