Version update with release notes

Switch to safe loader
This commit is contained in:
aerinon
2021-05-04 16:26:45 -06:00
parent a3b5cb4baa
commit a2fcad1e22
3 changed files with 9 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ from Fill import sell_potions, sell_keys, balance_multiworld_progression, balanc
from ItemList import generate_itempool, difficulties, fill_prizes, customize_shops
from Utils import output_path, parse_player_names
__version__ = '0.3.1.8-u'
__version__ = '0.4.0.0-u'
class EnemizerError(RuntimeError):

View File

@@ -86,7 +86,7 @@ def get_weights(path):
if urllib.parse.urlparse(path).scheme:
return yaml.load(urllib.request.urlopen(path), Loader=yaml.FullLoader)
with open(path, 'r', encoding='utf-8') as f:
return yaml.load(f, Loader=yaml.FullLoader)
return yaml.load(f, Loader=yaml.SafeLoader)
except Exception as e:
raise Exception(f'Failed to read weights file: {e}')

View File

@@ -148,6 +148,13 @@ See the example yaml file for demonstrated usage.
New item counter modified to show total
## Volatile Notes
* Mystery yaml parser updated to a package maintained version (Thanks StructuralMike)
* Bomb-logic and extend crystal switch logic (Thanks StructuralMike)
* Fixed logic for moved locations in playthrough (Thanks compiling)
* OWG Glitch logic (Thanks qadan, cheuer, & compiling)
# Bug Fixes and Notes.
* 0.3.1.9-u