Skip to content

Commit

Permalink
Merge pull request #9 from chao/master
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
benlye authored Feb 4, 2022
2 parents 44abea1 + 85bf0f0 commit 165b346
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions octoprint_actioncommands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def hook_actioncommands(self, comm, line, command, *args, **kwargs):
return

else:
if ";" in command:
command = command.split(';')[0]
command = command.strip()
try:
this_command = self.command_definitions[command]
self._logger.info("Command found for 'action:%s'" % (command))
Expand Down

0 comments on commit 165b346

Please sign in to comment.