starlingcode / Via-for-Rack

MIT License
24 stars 8 forks source link

Fix crashes when loading older Rack patches #35

Closed SteveRussell33 closed 2 years ago

SteveRussell33 commented 2 years ago

Added guards so that older patches using modules that now have a file loading option, don't crash when Rack tries to load the file path parameters (which wouldn't be present) from the JSON in the patch.

Checking for the existence of parameters in the patch is Rack module best practice, so I added them to each module.

liquidcitymotors commented 2 years ago

Thank you @SteveRussell33, very grateful for this contribution!