Skip to content

Commit

Permalink
Fix problem reading playoff standings
Browse files Browse the repository at this point in the history
  • Loading branch information
betacentauri committed Nov 7, 2018
1 parent 1b826dd commit d9ffcd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ def loadNormalStandings(self, jsonData):

def loadPlayoffStandings(self, jsonData):
try:
title = jsonData['data']['title'].encode('utf8')
if 'title' in jsonData['data']:
title = jsonData['data']['title'].encode('utf8')
else:
title = ''
for round in jsonData['data']['rounds']:
subtitle = round['title'].encode('utf8')
for enc in round['encounters']:
Expand Down

0 comments on commit d9ffcd2

Please sign in to comment.