From 96c34c95f3914416e56cdbe8fff5b54a998c34c8 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 18 Oct 2018 20:24:28 -0400 Subject: [PATCH] Don't use format strings, for compatability with Python 3.5 :( --- hid/DoorController.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hid/DoorController.py b/hid/DoorController.py index 2f7faf5..4011800 100644 --- a/hid/DoorController.py +++ b/hid/DoorController.py @@ -16,7 +16,8 @@ fieldnames = "CardNumber,CardFormat,PinRequired,PinCode,ExtendedAccess,ExpiryDat class RemoteError(Exception): def __init__(self, r): super().__init__( - f"Door Updating Error: {r.status_code} {r.reason}\n{r.text}") + "Door Updating Error: {} {}\n{}" + .format(r.status_code, r.reason, r.text)) class DoorController(): def __init__(self, ip, username, password, name="", access=""):