Skip to content

Commit 0ba0c60

Browse files
committed
Catch TypeErrors as well when loading player dat files
1 parent b8fb765 commit 0ba0c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviewer_core/aux_files/genPOI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def handlePlayers(worldpath, filters, markers):
280280
data.use_uuid = useUUIDs
281281
if isSinglePlayer:
282282
data = data['Data']['Player']
283-
except IOError:
283+
except (IOError, TypeError):
284284
logging.warning("Skipping bad player dat file %r", playerfile)
285285
continue
286286

0 commit comments

Comments
 (0)