From c9bfd7e4aa92de4308249f9f15cc4c9ad019fab9 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 8 Nov 2022 20:04:28 +0100 Subject: [PATCH] forgot about the linter once again --- pretalx_broadcast_tools/views.py | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pretalx_broadcast_tools/views.py b/pretalx_broadcast_tools/views.py index 0725ddd..cc32795 100644 --- a/pretalx_broadcast_tools/views.py +++ b/pretalx_broadcast_tools/views.py @@ -113,15 +113,19 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, Templat ) except KeyError as e: key = str(e)[1:-1] - return JsonResponse({ - 'error': [ - f'Could not find value for placeholder {{{key}}} in info line.', - f'If you want to use {{{key}}} without evaluating it, please use as follows: {{{{{key}}}}}', - ], - }) + return JsonResponse( + { + "error": [ + f"Could not find value for placeholder {{{key}}} in info line.", + f"If you want to use {{{key}}} without evaluating it, please use as follows: {{{{{key}}}}}", + ], + } + ) except Exception as e: - return JsonResponse({ - 'error': [ - repr(e), - ], - }) + return JsonResponse( + { + "error": [ + repr(e), + ], + } + )