mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SM: raise Exception instead of sys.exit for custom presets
This commit is contained in:
@@ -348,8 +348,7 @@ class VariaRandomizer:
|
||||
if response.ok:
|
||||
PresetLoader.factory(json.loads(response.text)).load(self.player)
|
||||
else:
|
||||
print("Got error {} {} {} from trying to fetch varia custom preset named {}".format(response.status_code, response.reason, response.text, preset_name))
|
||||
sys.exit(-1)
|
||||
raise Exception("Got error {} {} {} from trying to fetch varia custom preset named {}".format(response.status_code, response.reason, response.text, preset_name))
|
||||
else:
|
||||
preset = 'default'
|
||||
PresetLoader.factory(os.path.join(appDir, getPresetDir('casual'), 'casual.json')).load(self.player)
|
||||
|
||||
Reference in New Issue
Block a user