Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StoicLoofah committed Sep 29, 2020
1 parent 7b08c1e commit ba6817d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2reader/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def load_translations(self):

translation = dict()
for uid, (sheet, item) in self.id_map.items():
if sheet and sheet < len(sheets) and item in sheets[sheet]:
if sheet is not None and sheet < len(sheets) and item in sheets[sheet]:
translation[uid] = sheets[sheet][item]
elif self.opt["debug"]:
msg = "No {0} translation for sheet {1}, item {2}"
Expand Down

0 comments on commit ba6817d

Please sign in to comment.