From b29686d9f2be758207f9e6a7dd2848da8e583ba9 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Thu, 4 May 2023 21:09:32 +0200 Subject: [PATCH] Fix shell_scoped without shell_plus (#3292) --- src/pretix/base/management/commands/shell_scoped.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/management/commands/shell_scoped.py b/src/pretix/base/management/commands/shell_scoped.py index 4029fa081..d5b67f90e 100644 --- a/src/pretix/base/management/commands/shell_scoped.py +++ b/src/pretix/base/management/commands/shell_scoped.py @@ -51,7 +51,7 @@ class Command(BaseCommand): del options['skip_checks'] del options['print_sql'] - if options['print_sql']: + if options.get('print_sql'): connection.force_debug_cursor = True logger = logging.getLogger("django.db.backends") logger.setLevel(logging.DEBUG)