1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-05-15 05:32:33 +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: except KeyError as e:
key = str(e)[1:-1] key = str(e)[1:-1]
return JsonResponse({ return JsonResponse(
'error': [ {
f'Could not find value for placeholder {{{key}}} in info line.', "error": [
f'If you want to use {{{key}}} without evaluating it, please use as follows: {{{{{key}}}}}', 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: except Exception as e:
return JsonResponse({ return JsonResponse(
'error': [ {
repr(e), "error": [
], repr(e),
}) ],
}
)