Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vyokky committed Apr 29, 2024
1 parent 398c77d commit 8716a2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ufo/automator/puppeteer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def create_command(self, command_name: str, params: Dict, *args, **kwargs) -> ob
receiver = self.receiver_manager.get_receiver(command_name)
command = receiver.get_command_registry().get(command_name.lower(), None)

if receiver is None:
raise ValueError(f"Receiver for command {command_name} is not found.")

if command is None:
raise ValueError(f"Command {command_name} is not supported.")

Expand Down

0 comments on commit 8716a2d

Please sign in to comment.