mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-23 13:11:03 +00:00
forgot about the linter once again
This commit is contained in:
parent
191ce772c5
commit
c9bfd7e4aa
1 changed files with 15 additions and 11 deletions
|
@ -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': [
|
||||
return JsonResponse(
|
||||
{
|
||||
"error": [
|
||||
repr(e),
|
||||
],
|
||||
})
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue