fossasia / open-event-server

Unguarded next inside generator PTC-W0063
Bug risk
Critical
1 occurrence in this check
Call to next() should be wrapped in try-except
196            get_or_create(
197                EventSubTopic,
198                name=subtopic,
199                event_topic_id=next(x for x in eventopics if x.name == keysub_topic).id,200            )
201
202