1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-23 13:31:02 +00:00

forgot about the linter once again

This commit is contained in:
Franzi 2022-11-08 20:04:28 +01:00
parent 191ce772c5
commit c9bfd7e4aa
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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),
],
}
)