Seneca-CDOT / simengine

simengine :: Hardware simulation engine for Alteeve's Anvil! Intelligent Availability platform and similar HA configurations
GNU General Public License v3.0
5 stars 7 forks source link

Added a ValueError exception for the system. #141

Closed Metropass closed 3 years ago

Metropass commented 4 years ago

In Issue #83 the Status command breaks when the system model is empty.

This is because we pass a Dictionary that has no elements (the system is empty), and try to iterate through a None object.

This fix adds a check to see if assets is None and raise a ValueError

noahpop77 commented 3 years ago

This issue was fixed in #144. Closing this pull request.

noahpop77 commented 3 years ago

Also, thank you for bring this to light.