Skip to content

Commit

Permalink
shortened pull #260
Browse files Browse the repository at this point in the history
  • Loading branch information
diafygi committed Aug 21, 2021
1 parent 907bba2 commit 0d97a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme_tiny.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _poll_until_not(url, pending_statuses, err_msg):
log.info("Registering account...")
reg_payload = {"termsOfServiceAgreed": True}
account, code, acct_headers = _send_signed_request(directory['newAccount'], reg_payload, "Error registering")
log.info("Registered! Account ID: {0}".format(acct_headers['Location']) if code == 201 else "Already registered! Account ID: {0}".format(acct_headers['Location']))
log.info("{0} Account ID: {1}".format("Registered!" if code == 201 else "Already registered!", acct_headers['Location']))
if contact is not None:
account, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details")
log.info("Updated contact details:\n{0}".format("\n".join(account['contact'])))
Expand Down

0 comments on commit 0d97a2d

Please sign in to comment.