mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-23 16:21:02 +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:
|
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': [
|
{
|
||||||
|
"error": [
|
||||||
repr(e),
|
repr(e),
|
||||||
],
|
],
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue