Commit 42d9814a authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

postgresql fix?

parent c5b2e797
......@@ -41,7 +41,7 @@ def get_landing_page(request):
# fail_silently=False)
try:
selection = Selection.objects.filter(active=True).latest('endtime')
except Model.DoesNotExist:
except:
selection = None
if selection is not None and selection.endtime > timezone.now():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment