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)