mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Forgot parameter in formatting error
This commit is contained in:
@@ -126,7 +126,7 @@ def add_appointment(args):
|
|||||||
else:
|
else:
|
||||||
error = r.json()['error']
|
error = r.json()['error']
|
||||||
logger.error("The server returned status code {}, and the following error: {}."
|
logger.error("The server returned status code {}, and the following error: {}."
|
||||||
.format(r.status_code))
|
.format(r.status_code), error)
|
||||||
|
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
logger.error("The response was not valid JSON.")
|
logger.error("The response was not valid JSON.")
|
||||||
|
|||||||
Reference in New Issue
Block a user