Small bug fix regarding msd state
This commit is contained in:
@@ -289,9 +289,6 @@ class Msd:
|
|||||||
if self.expected_state not in states:
|
if self.expected_state not in states:
|
||||||
if self.require_valid:
|
if self.require_valid:
|
||||||
raise MsdException(f"Given msd '{self.codecode}' is '{self.state.name}', but expected state is '{self.expected_state.name}'.")
|
raise MsdException(f"Given msd '{self.codecode}' is '{self.state.name}', but expected state is '{self.expected_state.name}'.")
|
||||||
else:
|
|
||||||
if self.state == self.State.UNKNOWN:
|
|
||||||
print(f"[WARN] The Msd '{self.code}' is unknown.")
|
|
||||||
else:
|
else:
|
||||||
print(f"[WARN] The Msd '{self.code}' is unknown for expected state '{self.expected_state.name}'.")
|
print(f"[WARN] The Msd '{self.code}' is unknown for expected state '{self.expected_state.name}'.")
|
||||||
return max(states)
|
return max(states)
|
||||||
|
|||||||
Reference in New Issue
Block a user