Merge PR #1877 from clonetwin26

"Catch KeyErrors since nether maps don't necessarily have well formed player.dat"
This commit is contained in:
Nicolas F 2020-11-27 14:17:41 +01:00 committed by GitHub
commit 074a7d23a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ def handlePlayers(worldpath, filters, markers):
data.use_uuid = useUUIDs
if isSinglePlayer:
data = data['Data']['Player']
except (IOError, TypeError):
except (IOError, TypeError, KeyError):
logging.warning("Skipping bad player dat file %r.", playerfile)
continue