Closed Metropass closed 3 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.
None
This fix adds a check to see if assets is None and raise a ValueError
assets
ValueError
This issue was fixed in #144. Closing this pull request.
Also, thank you for bring this to light.
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
isNone
and raise aValueError