Skip to content

Commit

Permalink
[pycue] Add missing exception parsing to setAllocation. (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
akim-ruslanov committed Oct 25, 2022
1 parent 962b227 commit 234a9ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycue/opencue/wrappers/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import time

from opencue import Cuebot
from opencue import util
from opencue.compiled_proto import comment_pb2
from opencue.compiled_proto import host_pb2
import opencue.wrappers.comment
Expand Down Expand Up @@ -149,6 +150,7 @@ def renameTag(self, oldTag, newTag):
host_pb2.HostRenameTagRequest(host=self.data, old_tag=oldTag, new_tag=newTag),
timeout=Cuebot.Timeout)

@util.grpcExceptionParser
def setAllocation(self, allocation):
"""Sets the host to the given allocation.
Expand Down

0 comments on commit 234a9ce

Please sign in to comment.