Minor fixes

This commit is contained in:
Salvatore Ingala
2019-10-22 18:59:27 +08:00
parent b39f7ef55b
commit 9b1af92fc3
3 changed files with 3 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ def add_appointment(args):
logger.error("The response does not contain the signature of the appointment.")
else:
# verify that the returned signature is valid
if is_appointment_signature_valid(appointment, response_json['signature']) == False:
if not is_appointment_signature_valid(appointment, response_json['signature']):
logger.error("The returned appointment's signature is invalid.")
else:
if 'error' not in response_json: