get_url_JSON(): fix handling of url = None

This commit is contained in:
Jylpah committed 2020-02-13 20:52:54 +02:00
1 parent a349d8ebea
commit 8b3f6d0262
2 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ class BattleRecordCategory():
def get_headers(self):
try:
headers = [ RESULT_CAT_HEADER_FRMT.format(result_categories[self.category_name][0]) ]
for field in result_fields.keys():
for field in result_display_fields:
print_format = '{:^' + str(result_fields[field][2]) + 's}'
headers.append(print_format.format(result_fields[field][0]))
return headers