Skip to content

Commit

Permalink
better flow control
Browse files Browse the repository at this point in the history
  • Loading branch information
nabil committed Apr 3, 2019
1 parent f33a1a4 commit 7636893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keylime/tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def do_quote(self):
time.sleep(retry)
continue
else:
raise UserError(e)
raise e
break

try:
Expand Down Expand Up @@ -621,8 +621,8 @@ def do_quote(self):
raise UserError("Posting of Encrypted U to the Cloud Node failed with response code %d" %response.status_code)

except Exception as e:
logger.exception(e)
self.do_cvstop()
raise e

def do_verify(self):
"""initiaite v, instance_id and ip
Expand All @@ -646,7 +646,7 @@ def do_verify(self):
time.sleep(retry)
continue
else:
raise UserError(e)
raise e

response_body = response.json()
if response.status_code == 200:
Expand Down

0 comments on commit 7636893

Please sign in to comment.