Skip to content

Commit

Permalink
Don't respond with @undefined for unsupported values when using list …
Browse files Browse the repository at this point in the history
…commands like SCENENAME=?
  • Loading branch information
mvdwetering committed Jul 23, 2024
1 parent de5825e commit 508c2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ynca/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def handle_get(self, subunit, function, skip_error_response=False):
sys_values = self.store._store["SYS"]
for key in sys_values.keys():
if key.startswith("INPNAME") and key != "INPNAME":
self.handle_get(subunit, key)
self.handle_get(subunit, key, skip_error_response=True)
return
elif response_functions := multiresponse_functions_table.get(function, None):
before = self._commands_sent
Expand All @@ -194,7 +194,7 @@ def handle_get(self, subunit, function, skip_error_response=False):
and key.endswith("NAME")
and key != "SCENENAME"
):
self.handle_get(subunit, key)
self.handle_get(subunit, key, skip_error_response=True)
response_sent = True
if not response_sent:
self.write_line(UNDEFINED)
Expand Down

0 comments on commit 508c2af

Please sign in to comment.