diff --git a/hypickle/hypixel.py b/hypickle/hypixel.py index 329f8a8..d935ccc 100644 --- a/hypickle/hypixel.py +++ b/hypickle/hypixel.py @@ -210,7 +210,7 @@ def getPitDeaths(self) -> int: return Utils.nested_get(self.JSON, ('stats', 'Pit', 'pit_stats_ptl', 'deaths'), 0, int) def getNetworkXP(self) -> int: - xp = self.JSON['networkExp'] + xp = self.JSON.get('networkExp', 0) assert int(xp) == xp return int(xp)