From 10110f12f0cdba9d551e54009a15800d55441a3e Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Mon, 19 Feb 2024 10:23:18 +0100 Subject: [PATCH] Fix code style --- pretalx_youtube/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pretalx_youtube/forms.py b/pretalx_youtube/forms.py index b61d477..a14c539 100644 --- a/pretalx_youtube/forms.py +++ b/pretalx_youtube/forms.py @@ -13,11 +13,11 @@ class FileUploadForm(forms.Form): class YouTubeUrlForm(forms.Form): def __init__(self, *args, event, **kwargs): - if not event.current_schedule: - return super().__init__(*args, **kwargs) - super().__init__(*args, **kwargs) + if not event or not event.current_schedule: + return + self.talks = ( event.current_schedule.talks.all() .filter(is_visible=True, submission__isnull=False)