Closed Worville closed 6 years ago
I've been trying to create the player dictionary, but having problems with bc.savePlayerDictionary. players = bc.buildPlayerDictionary() works fine, but then running the following command:
bc.savePlayerDictionary
players = bc.buildPlayerDictionary()
bc.savePlayerDictionary(players, "/path/to/playerJson.bk.json")
I get the following error:
AttributeError: 'NavigableString' object has no attribute 'to_json'
Any ideas as to why it's failing? Great work with this by the way, really like this module!
Hey @Worville,
Not sure why this was incorrect in the first place, but I just created #11 to fix it - Thanks for letting us know!
Awesome, thanks @wilsonchaney !
I've been trying to create the player dictionary, but having problems with
bc.savePlayerDictionary
.players = bc.buildPlayerDictionary()
works fine, but then running the following command:bc.savePlayerDictionary(players, "/path/to/playerJson.bk.json")
I get the following error:
AttributeError: 'NavigableString' object has no attribute 'to_json'
Any ideas as to why it's failing? Great work with this by the way, really like this module!