Remove useless else

This commit is contained in:
Florent 2015-01-01 12:19:01 +01:00
commit e64b3ef9a7

View file

@ -185,8 +185,8 @@ class AllocineModule(Module, CapCinema, CapVideo, CapCalendarEvent, CapCollectio
events = list(self.browser.search_events(query))
events.sort(key=lambda x: x.start_date, reverse=False)
return events
else:
raise UserError('You must enter a zip code in city field')
raise UserError('You must enter a zip code in city field')
def get_event(self, id):
return self.browser.get_event(id)