From 67c3091aa1548c27c8db00ff024b315f15b8d012 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 22 Jan 2022 15:09:30 -0800 Subject: [PATCH] Fixes option checking in initdb management command --- bookwyrm/management/commands/initdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/management/commands/initdb.py b/bookwyrm/management/commands/initdb.py index 37dd66af..b5405574 100644 --- a/bookwyrm/management/commands/initdb.py +++ b/bookwyrm/management/commands/initdb.py @@ -164,7 +164,7 @@ class Command(BaseCommand): "settings", "linkdomain", ] - if limit not in tables: + if limit and limit not in tables: raise Exception("Invalid table limit:", limit) if not limit or limit == "group":