I am trying to add two variables together in my template that will combine two scores together and print the value. The problem is when the loop gets to a game that hasn't happened yet it kicks out an error because the variable doesn't exist yet.
What am I supposed to add to skip games in the loop that have no score?
{% for game in games %}
<p class="light-blue text-center">
Total: {{ game.scoreboard.score.home|add:game.scoreboard.score.away }}
</p>
{% endfor %}