Skip to content

Commit

Permalink
Merge pull request #7 from qiqb-osaka/feature_status
Browse files Browse the repository at this point in the history
temporarily commented out response status check
  • Loading branch information
snuffkin authored Dec 8, 2023
2 parents 66a96fb + dca7bc0 commit c639a43
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions quri_parts/riqu/rest/models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,13 @@ def status(self, status):
:param status: The status of this Job. # noqa: E501
:type: str
"""
allowed_values = ["created", "transpiling", "queued", "processing", "success", "failure", "cancelled"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
.format(status, allowed_values)
)
# TODO temporarily commented out response status check
#allowed_values = ["created", "transpiling", "queued", "processing", "success", "failure", "cancelled"] # noqa: E501
#if status not in allowed_values:
# raise ValueError(
# "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
# .format(status, allowed_values)
# )

self._status = status

Expand Down

0 comments on commit c639a43

Please sign in to comment.