diff --git a/tipp/views.py b/tipp/views.py index 54e1040..88f8507 100644 --- a/tipp/views.py +++ b/tipp/views.py @@ -406,7 +406,10 @@ def matchday(request, ls, season, matchday, template_name='md.html'): avatar = None posts.append( (post, avatar) ) - cur_group = matches[0]['md_name'] + try: + cur_group = matches[0]['md_name'] + except: + cur_group = "N/A" return render(request, 'md.html', { #'debug': debug,